informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

ifx_getcur_conn_name()

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

Syntax

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


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved