Show contents 

Db > Db Assembly Interfaces > IOdbcDataset > IOdbcDataset.UserId

IOdbcDataset.UserId

Syntax

UserId: String;

Description

The UserId property determines the name of a user that was connected to ODBC data source.

Example

Sub UserProc;
Var
    Mb: IMetabase;
    ODBC: IOdbcDataset;
    s: String;
Begin
    Mb:=MetabaseClass.Active;
    ODBC:=MB.ItemById("ODBC_SOURCE").Bind As IOdbcDataset;
    s:=ODBC.UserId;
End Sub UserProc;

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:

IOdbcDataset