System-default connection parameters
The database server obtains values for the system-default connection parameters from the execution environment of the client LIBMI application. When you use system-default connection parameters, you enable your application to be portable across client/server environments. However, before the application begins execution, you must ensure that the client/server environment is correctly initialized.
The following table shows the system-default connection parameters
that the database server uses to establish a connection.
System-default connection parameter | System-default connection value |
---|---|
Database server name | INFORMIXSERVER environment variable |
Server locale (Server) | SERVER_LOCALE environment variable or default locale (en_us) |
(Client) Database locale | DB_LOCALE environment variable or default locale (en_us) |
The system-default connection parameters provide connection information for all connections made within a client LIBMI application unless you explicitly override them within the application.
To use the default database server, initialize the server_name field to a NULL-valued pointer and server_port to zero.