Mimer SQL Documentation TOC PREV NEXT INDEX

Mimer SQL Developer Site


Declarations


A C program that calls the ODBC API typically requires the following declarations:

 #if defined(WIN32)
 #include <windows.h>
 #endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include "sqlext.h"
 #include "mimodbc.h"
 
 SQLHENV  henv;       // Environment handle for application
 SQLHDBC  hdbc;       // Connection handle
 SQLHSTMT hstmt;      // Statement handle
 

Handles identify a particular item; in ODBC this item can be an environment, connection, statement or descriptor. When the application calls SQLAllocHandle, the Driver Manager creates a new item of the specified type and returns the handle to the application. The application uses the handle to identify that item when calling ODBC functions.


Mimer
Mimer Information Technology AB
Phone: +46 18 780 92 00
info@mimer.com
Mimer SQL Documentation TOC PREV NEXT INDEX