ISecurityPackageLogonData.DbObjectO

Syntax

DbObjectO (Value: String; [Options: Integer = 0]): String;

Parameters

Value. Object identifier.

Options. This parameter is reserved.

Description

The DbObjectO method returns identifier of the object with the prefix that corresponds to the current repository.

Comments

The obtained identifier can be used in different SQL-expressions, for example, to execute one and the same query within different connections.

NOTE. The separator, used by specific DBMS, is also added between prefix and identifier in the resulting value.

Example

To execute the example add a link to the Metabase system assembly.

Sub UserProc;
Var 
    MB: IMetabase;
    LoS: ILogonSession;
    User: ISecurityConnection;
    SPLD: ISecurityPackageLogonData;
    s:String;
Begin
    MB:=MetabaseClass.Active;
    LoS:=MB.LogonSession;
    User:=LoS.PrimaryConnection;
    SPLD:=User.LogonData;
    s:=SPLD.DbObjectO("Obj1");
    Debug.WriteLine(s);
End Sub UserProc;

After executing the example the console will display the identifier of the object with the prefix corresponding to the current repository.

See also:

ISecurityPackageLogonData