DriverId: String;
The DriverId property determines an identifier of the database driver, using which the connection is established.
The property takes one of the following values depending on the DBMS type installed on the server:
ORCL8.
MSSQL2012.
MSSQL2012ODBC.
POSTGRES.
SQLITE.
WSF.
The correspondence of the specified identifiers to relevant versions of DBMS is specified in the Summary List of Identifiers section.
Executing the example requires the Test server. The Oracle DBMS is installed on the server, and the TestShema scheme is created.
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;
After executing the example a new repository description is created.
See also: