UseMetabaseCredentials: Boolean;
UseMetabaseCredentials: boolean;
The UseMetabaseCredentials property determines whether the credentials specified when entering to the current repository, will be used for connecting to the database.
If the value is True, the credentials specified when entering will be used for connecting to the database; if the value is False, the credentials specified in IMetabaseLink.Credentials will be used.
By default this property is set to False. The property is relevant for use, if the IMetabaseLink.LoginPrompt property is set to False.
Executing the example requires the %METABASE_SERVER% server and the TestShema schema.
Add a link to the Metabase system assembly.
After executing the example the new object Connection with Repository is created in the repository root. This object establishes connection with the repository that is placed in the TestShema scheme on the same server with the current repository. On using this method, the automatic connection to the scheme with the credentials that were specified when entering to the current repository, is established.
See also: