solidDB Help : Programming : Deploying SMA and LLA applications : Deploying LLA applications : Establishing local connections for LLA applications : Making local ODBC connections to LLA servers
  
Making local ODBC connections to LLA servers
In the ODBC API, to establish a connection to a local server (the server that was linked to the application), the user application calls the SQLConnect function with the literal string "localserver". You can also specify an empty source name "" for the local server connection. Furthermore, you can also specify a local server name. However, specifying a local server name causes the linked library access to use a "remote" connection, that is, to go through the network rather than to use the direct function calls to the linked library access library.
The following ODBC API code examples connect directly to a local solidDB server with user name dba and password dba:
rc = SQLConnect(hdbc, "localserver", (SWORD)SQL_NTS, "dba", 3, "dba", 3);
or
rc = SQLConnect(hdbc, "", (SWORD)SQL_NTS, "dba", 3, "dba", 3);
In the SA API, to establish a connection, the user application calls the SaConnect function with the literal string "localserver" (not the server name). You can also specify an empty source name "" for the local server connection. Furthermore, you can also specify a local server name. However, specifying a local server name causes the linked library access to use a "remote" connection, that is, to go through the network rather than to use the direct function calls to the linked library access library.
The following SA API example code connects directly to a solidDB server with user name dba and password dba:
SaConnectT* sc = SaConnect("localserver", "dba", "dba");
or
SaConnectT* sc = SaConnect("", "dba", "dba");
Go up to
Establishing local connections for LLA applications