The ifx_getcur_conn_name() function

The ifx_getcur_conn_name() function returns the name of the current connection.

Syntax

char *ifx_getcur_conn_name(void);

Usage

The current connection is the active database server connection that is currently sending SQL requests to the database server and possibly receiving data from the database server. In a callback function, the current connection is the current connection at the time when the callback was registered with a call to the sqlbreakcallback() function. The current connection name is the explicit name of the current connection. If the CONNECT statement that establishes a connection does not include the AS clause, the connection does not have an explicit name.

Return codes

Name of current connection
Successfully obtained current connection name
Null pointer
Unable to obtain current connection name or current connection does not have an explicit name