Sources of connection information in a Windows™ environment
To establish a connection to a database server, the
Informix® ESQL/C application
in a Windows™ environment
performs the following tasks:
- Provide information about the connection with the registry, the ifx_putenv() function, or the InetLogin structure
- Use a central registry for connection information
- Perform connection authentication for the application user
In Windows™ environments, Informix® ESQL/C obtains the configuration information from the InetLogin structure or the in-memory copy of the registry.
If the application has
initialized a field in InetLogin, Informix®
ESQL/C sends
this value to the database server. For any field the application has
not set in the InetLogin structure, Informix®
ESQL/C uses
the corresponding information in the Informix® subkey
of the registry.
Important: Because the
application needs configuration information to establish a connection,
you must set any InetLogin configuration values before the
SQL statement that establishes the connection.
The
registry contains the following configuration information:
- The values of the Informix® environment variables
- Connection information
When a client Informix® ESQL/C application establishes a connection to a database server, it sends the configuration information to the database server.