UserId: String;
The UserId property determines the name of a user that was connected to ODBC data source.
Sub Main;
Var
Mb: IMetabase;
ODBC: IOdbcDataset;
s: String;
Begin
Mb:=MetabaseClass.Active;
ODBC:=MB.ItemById("ODBC_SOURCE").Bind As IOdbcDataset;
s:=ODBC.UserId;
End Sub Main;
After executing the example, the "s" variable contains the name of ODBC data source user. The identifier of ODBC data source is ODBC_SOURCE.
See also: