The application calls the following routines to set up and open a connection to a remote server:
dbsetifile – specifies the interfaces file that dbopen will use to connect to a server.
dbsetlogintime – sets the number of seconds DB-Library/C will wait for a server to respond to a request by dbopen for a DBPROCESS connection.
dbopen – sets up communication with the network, logs into a server using the LOGINREC, initializes any options specified in the LOGINREC, and allocates a DBPROCESS. An application can open multiple connections to a server, each connection having its own DBPROCESS. An application can also open multiple connections to multiple servers.
dbuse – sets the current database. This routine is equivalent to the Transact-SQL use command and can be called repeatedly in an application, any time when the connection is open.