Defining ODBC handles

ODBC applications use a small set of handles to define basic features, such as database connections and SQL statements. A handle is a 32-bit value on 32-bit platforms and a 64-bit value on 64-bit platforms.

The handle types required for ODBC programs are as follows:

Item

Handle type

Environment

SQLHENV

Connection

SQLHDBC

Statement

SQLHSTMT

Descriptor

SQLHDESC

The following handles are used in all ODBC applications: