16.20 - Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)
void
FNC_DbsInfo_EON( dbs_info_eon_t *data )
dbs_info_eon_t *data
the global information, including user account, user name, user ID, and session number.
The dbs_info_eon_t structure is defined as:
typedef struct dbs_info_eon_t {
    Unicode_Text UserAccount[FNC_MAXNAMELEN_EON];
    Unicode_Text UserName[FNC_MAXNAMELEN_EON];
    int      UserId;
    short    StatementNo;
    short    Host;
    int      SessionNo;
    int      RequestNo;
} dbs_info_eon_t;
where:
  • UserAccount specifies the account string of a user.
  • UserName specifies the name of a user.
  • UserId specifies the user ID.
  • StatementNo specifies the current statement number for the request.
  • Host specifies the host ID.
  • SessionNo specifies the session number.
  • RequestNo specifies the current client request number.