IPrimaryTeradataSPLD.Database

Fore Syntax

Database: String;

Fore.NET Syntax

Database: String;

Description

The Database property determines the identifier of the database on the Teradata server in which the repository is created.

Fore Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MbMan: IMetabaseManager;
    MbDefs: IMetabaseDefinitions;
    MbDef: IMetabaseDefinition;
    TrdtSPLD: IPrimaryTeradataSPLD;
Begin
    MbMan := MetabaseManagerFactory.Active;
    MbDefs := MbMan.Definitions;
    MbDef := MbDefs.Add;
    MbDef.DriverId := "TRDT";
    MbDef.Id := "Test_TR";
    MbDef.Name := "Test_TR";
    MbDef.Authentication := AuthenticationMode.Password;
    MbDef.SecurityPackage := "STANDARDSECURITYPACKAGE";
    TrdtSPLD := MbDef.LogonData As IPrimaryTeradataSPLD;
    TrdtSPLD.Server := "TR_Server";
    TrdtSPLD.Database := "PPTest";
    MbDef.Save;
End Sub UserProc;

A new description of the repository is created after executing this example. The schema to which the connection is established is located on the TR_Server server, which uses the Teradata DBMS.

Fore.NET Example

The specified procedure is an entry point for the .NET assembly.

Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MbManClass: MetabaseManagerFactoryClass = New MetabaseManagerFactoryClass();
    MbMan: MetabaseManager;
    MbDefs: IMetabaseDefinitions;
    MbDef: IMetabaseDefinition;
    TrdtSPLD: IPrimaryTeradataSPLD;
Begin
    MbMan := MbManClass.Active;
    MbDefs := MbMan.Definitions;
    MbDef := MbDefs.Add();
    MbDef.DriverId := "TRDT";
    MbDef.Id := "Test_TR";
    MbDef.Name := "Test_TR";
    MbDef.Authentication := AuthenticationMode.amPassword;
    MbDef.SecurityPackage := "STANDARDSECURITYPACKAGE";
    TrdtSPLD := MbDef.LogonData As IPrimaryTeradataSPLD;
    TrdtSPLD.Server := "TR_Server";
    TrdtSPLD.Database := "PPTest";
    MbDef.Save();
End Sub;

A new description of the repository is created after executing this example. The schema to which the connection is established is located on the TR_Server server, which uses the Teradata DBMS.

See also:

IPrimaryTeradataSPLD