IDatabase.UseMetabaseLogonData

Syntax

UseMetabaseLogonData: Boolean;

Description

The UseMetabaseLogonData property determines whether database connection settings are redetermined.

Comments

Available values:

Example

Executing the example requires that the repository contains a database with the OBJ_DB identifier.

Sub Main;

Var

mb: IMetabase;

mbobj: IMetabaseObject;

db: IDatabase;

LogonData: ISecurityPackageLogonData;

Begin

mb := MetabaseClass.Active;

mbobj := mb.ItemById("OBJ_DB").Edit;

db := mbobj As IDatabase;

db.UseMetabaseLogonData := False;

db.Authentication := AuthenticationMode.Password;

db.DriverId := "ORCL";

LogonData := db.LogonData;

LogonData.ParamValue("SERVER") := "Test";

LogonData.ParamValue("SCHEME") := "TestShema";

mbobj.Save;

End Sub Main;

After executing the example, connection settings for the OBJ_DB database are redetermined.

See also:

IDatabase