version 2004
ODBC_SQLAllocConnect (connectionID) Longint
Parameter | Type | Description | |
connectionID | Longint | Connection ID | |
Function result | Longint | Returns the result of the MS ODBC API function | |
SQLAllocHandle |
Description
The ODBC_SQLAllocConnect command allocates a connection handle to the connectionID parameter, which is a Longint variable that you pass to it. After calling this command, you can establish a connection to a specific data source by calling the ODBC_SQLConnect command.
For more information, please see the SQLAllocHandle function in the MS ODBC API at http://msdn.microsoft.com/library/en-us/odbc/htm/odbcsqlallocconnect.asp.
Function Results
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE, or SQL_ERROR.
Example
See the example for the ODBC_SQLConnect command.
See Also
ODBC_SQLConnect, ODBC_SQLFreeConnect.