Returns existing client information. Since this API permits specification of a database alias, an application can query client information associated with a specific connection. Returns null if sqleseti - Set Client Information has not previously established a value.
If a specific connection is requested, this API returns the latest values for that connection. If all connections are specified, the API returns the values that are to be associated with all connections; that is, the values passed in the last call to sqleseti (specifying all connections).
Authorization
None
Required Connection
None
Version
sqlenv.h
C API Syntax
/* File: sqlenv.h */ /* API: Query Client Information */ /* ... */ SQL_API_RC SQL_API_FN sqleqryi ( unsigned short DbAliasLen, char * pDbAlias, unsigned short NumItems, struct sqle_client_info* pClient_Info, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlenv.h */ /* API: Query Client Information */ /* ... */ SQL_API_RC SQL_API_FN sqleqryi ( unsigned short DbAliasLen, char * pDbAlias, unsigned short NumItems, struct sqle_client_info* pClient_Info, struct sqlca * pSqlca); /* ... */ |
API Parameters
Sample Programs
Usage Notes
The settings can be queried at any time during execution. If the API call is successful, the current settings are returned to the specified areas. Returns a length of zero and a null-terminated string (\0) for any fields that have not been set through a call to sqleseti - Set Client Information.
See Also
sqleseti - Set Client Information.