ODBC_SQLAllocConnect

4D - Documentation   Français   English   German   4D ODBC PRO, Command Theme List   4D ODBC PRO, Command Alphabetical List   Back   Previous   Next

version 2004


ODBC_SQLAllocConnect (connectionID) Longint

ParameterTypeDescription
connectionIDLongintConnection ID
Function resultLongintReturns 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.


4D - Documentation   Français   English   German   4D ODBC PRO, Command Theme List   4D ODBC PRO, Command Alphabetical List   Back   Previous   Next