Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » ODBC support » ODBC handles

 

How to allocate ODBC handles

The handle types required for ODBC programs are as follows:

Item Handle type
Environment SQLHENV
Connection SQLHDBC
Statement SQLHSTMT
Descriptor SQLHDESC

To use an ODBC handle, you perform the following tasks:

  1. Call the SQLAllocHandle function.

  2. Use the handle in subsequent function calls.

  3. Free the object using SQLFreeHandle.

SQLAllocHandle takes the following parameters:

SQLFreeHandle takes the following parameters:

 Example
 See also