PrimaryConnection: ISecurityConnection;
The PrimaryConnection property returns the object, containing current connection with the repository.
NOTE. Operations with cursors, creating and executing SQL queries are not allowed within current connection with the repository.
Sub Main;
Var
MB: IMetabase;
LogSes: ILogonSession;
SecCon: ISecurityConnection;
s: String;
Begin
MB:=MetabaseClass.Active;
LogSes:=MB.LogonSession;
SecCon:=LogSes.PrimaryConnection;
s:=SecCon.Driver;
End Sub Main;
After executing the example the "s" variable contains DB driver identifier of the current connection.
See also: