IPrimaryTeradataSPLD.Database

Syntax

Database: String;

Description

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

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;

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

See also:

IPrimaryTeradataSPLD