IPrimaryDB2SPLD.Server

Syntax

Server: String;

Description

The Server property determines a name of the DB2 server on which the scheme is placed.

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;

A new description of the repository is created after executing this example. The schema to which the connection is established is placed to the Test_DB2 server. The DB2 DBMS is used on the server.

See also:

IPrimaryDB2SPLD