Mimer SQL Documentation TOC PREV NEXT INDEX

Mimer SQL Developer Site

http://developer.mimer.com


Declarations


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

 #if defined(_MSDOS) || defined(WIN32)
 #include <windows.h>
 #endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include "sqlext.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.



Upright Database Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40
dbtechnology@upright.se
Mimer SQL Documentation TOC PREV NEXT INDEX