The handle types required for ODBC programs are as follows:
Item | Handle type |
---|---|
Environment | SQLHENV |
Connection | SQLHDBC |
Statement | SQLHSTMT |
Descriptor | SQLHDESC |
Call the SQLAllocHandle function.
SQLAllocHandle takes the following parameters:
an identifier for the type of item being allocated
the handle of the parent item
a pointer to the location of the handle to be allocated
For a full description, see SQLAllocHandle in the Microsoft ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms712455.aspx.
Use the handle in subsequent function calls.
Free the object using SQLFreeHandle.
SQLFreeHandle takes the following parameters:
an identifier for the type of item being freed
the handle of the item being freed
For a full description, see SQLFreeHandle in the Microsoft ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms710123.aspx.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |