Scheme: String;
The Scheme property determines a name of the schema on the DB2 server.
Sub UserProc;
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 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 Test_DB2 server. The DB2 DBMS is used on the server.
See also: