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:

Item

Handle Type

Environment

SQLHENV

Connection

SQLHDBC

Statement

SQLHSTMT

Descriptor

SQLHDESC

These handles are used in all ODBC applications: