Connect to a database server

When the Informix® ESQL/C application begins execution, it has no connections to any database server. For SQL statements to execute, however, such a connection must exist. To establish a connection to a database server, the Informix ESQL/C program must take the following actions:
  • Use an SQL statement to establish a connection to the database server
  • Specify, in the SQL statement, the name of the database server to which to connect