Group: ODBC API - Library: odbc32
Enumerating ODBC Data Sources available on the local computer
Testing an ODBC connection for supporting specific functionality
Using vendor-neutral SQL constructs
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
Retrieveing general information about the driver and data source associated with an ODBC connection
Establishing connection using the SQLDriverConnect
Obtaining list of tables stored in an ODBC Data Source
SQLRETURN SQLAllocHandle(
SQLSMALLINT HandleType,
SQLHANDLE InputHandle,
SQLHANDLE * OutputHandlePtr);
DECLARE SHORT SQLAllocHandle IN odbc32;
INTEGER HandleType,;
INTEGER InputHandle,;
INTEGER @ OutputHandlePtr
HandleType [Input] The type of handle to be allocated by SQLAllocHandle (predefined value).
InputHandle [Input] The input handle in whose context the new handle is to be allocated.
OutputHandlePtr [Output] Pointer to a buffer in which to return the handle to the newly allocated data structure.
SQL_SUCCESS (0), SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE, or SQL_ERROR.