mi_server_connect()
The mi_server_connect() function establishes a connection between a client and a database server and initializes the DataBlade API.
Syntax
Usage
One of the functions listed under "Initialization" must be the first DataBlade API function called in a DataBlade API session. If one of these functions is not called first, DataBlade API is not initialized and all subsequent DataBlade API calls return error status.
The mi_server_connect() function is used for portable applications that run against different database servers. If mi_server_connect() is used to establish a connection to a database server, mi_login() is used to open a database. For general information about establishing a session with mi_server_connect() and mi_login(), see "Connections with mi_server_connect() and mi_login()".
Return Values
Returns a pointer to a new MI_CONNECTION descriptor. This descriptor can then be passed to subsequent routines called on the connection.
Related Topics
For additional information, see the descriptions of the following functions: mi_close(), mi_login(), mi_open(), and mi_server_reconnect().
|