IPrimaryDB2SPLD.Server

Syntax

Server: String;

Description

The Server property determines a name of the DB2 server, on which the schema is located.

Example

Sub Main;

Var

MbMan: IMetabaseManager;

MbDefs: IMetabaseDefinitions;

MbDef: IMetabaseDefinition;

DB2SPLD: IPrimaryDB2SPLD;

Begin

MbMan := MetabaseManagerFactory.Active;

MbDefs := MbMan.Definitions;

MbDef := MbDefs.Add;

MbDef.DriverId := "DB2";

MbDef.Id := "Test_Db2";

MbDef.Name := "Test_Db2";

MbDef.SecurityPackage := "STANDARDSECURITYPACKAGE";

DB2SPLD := MbDef.LogonData As IPrimaryDB2SPLD;

DB2SPLD.Server := "Test_DB2";

DB2SPLD.Scheme := "Test_Schema_DB2";

MbDef.Save;

End Sub Main;

After executing the example a new description of the repository is created. The schema, to which the connection is established, is located on the Test_DB2 server. The DB2 DBMS is used on the server.

See also:

IPrimaryDB2SPLD