Call Level Interface Guide and Reference

Loading DB2 CLI Specific Functions From ODBC Applications

Call SQLGetInfo() with the SQL_DRIVER_HSTMT option to obtain the DB2 CLI statement handle (HSTMT).

The DB2 CLI functions can then be called directly from the shared library or DLL, using an operating system call and passing the HTSMT argument. (The ODBC driver manager maintains its own set of statement handles which are mapped to actual driver handles on each call. When a DB2 CLI function is called directly, this mapping must be done explicitly by calling SQLGetInfo().


[ Top of Page | Previous Page | Next Page ]