UseMetabaseLogonData: Boolean;
The UseMetabaseLogonData property determines whether database connection settings are redetermined.
Available values:
True. The settings specified in the repository connection are used for connection.
False. Default value. The custom properties specified by various properties of the IDatabase interface are used for connection.
Executing the example requires that the repository contains a database with the OBJ_DB identifier.
Sub UserProc;
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 UserProc;
After executing the example, connection settings for the OBJ_DB database are redetermined.
See also: