IMetabaseLinkBase.DriverId

Syntax

DriverId: String;

DriverId: System.String;

Description

The DriverId property determines an identifier of the database driver using which the connection is established.

Comments

The property takes one of the following values depending on the DBMS type installed on the server:

The correspondence to the specified identifiers to relevant versions of DBMS is specified in theSupported DBMS > Total List of Identifiers section.

Example

Executing the example requires the Test server, the TestShema schema.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    Man: IMetabaseManager;
    Defs: IMetabaseDefinitions;
    Def: IMetabaseDefinition;
Begin
    Man := MetabaseManagerFactory.Active;
    Defs := Man.Definitions;
    Def := Defs.Add;
    Def.Id := "TestDefinition";
    Def.Name := "TestDefinition";
    Def.Authentication := AuthenticationMode.Password;
    Def.DriverId := "ORCL8";
    Def.SecurityPackage := "STANDARDSECURITYPACKAGE";
    Def.LogonData.ParamValue("SERVER") := "Test";
    Def.LogonData.ParamValue("SCHEME") := "TestShema";
    Def.Scope := MetabaseDefinitionScope.LocalMachine;
    Def.Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);

    Man: IMetabaseManager;
    Defs: IMetabaseDefinitions;
    Def: IMetabaseDefinition;
    ManCls: MetabaseManagerFactory = 
New MetabaseManagerFactoryClass();
Begin
    Man := ManCls.Active;
    Defs := Man.Definitions;
    Def := Defs.Add();
    Def.Id := 
"TestDefinition";
    Def.Name := 
"TestDefinition";
    Def.Authentication := AuthenticationMode.amPassword;
    Def.DriverId := 
"ORCL8";
    Def.SecurityPackage := 
"STANDARDSECURITYPACKAGE";
    Def.LogonData.ParamValue[
"SERVER"] := "Test";
    Def.LogonData.ParamValue[
"SCHEME"] := "TestShema";
    Def.Scope := MetabaseDefinitionScope.mdsLocalMachine;
    Def.Save();
End Sub;

A new description of the repository is created after executing this example. Repository data are stored on the Test server in the TestShema scheme. While connection password authentication, type DBMS installed on the server Oracle 9 server are used. This description is available for all user created in Windows.

See also:

IMetabaseLinkBase