Search notes:

sql.h

The main header file to include for ODBC core functions.
Apparently, it reiies on windows.h already having been included when sql.h is included.

Data type codes

This header file defines the following ODBC data type codes (at around line 187 or so):
/* SQL data type codes */
#define SQL_UNKNOWN_TYPE    0
#define SQL_CHAR            1
#define SQL_NUMERIC         2
#define SQL_DECIMAL         3
#define SQL_INTEGER         4
#define SQL_SMALLINT        5
#define SQL_FLOAT           6
#define SQL_REAL            7
#define SQL_DOUBLE          8
#if (ODBCVER >= 0x0300)
#define SQL_DATETIME        9
#endif
#define SQL_VARCHAR         12

/* One-parameter shortcuts for date/time data types */
#if (ODBCVER >= 0x0300)
#define SQL_TYPE_DATE       91
#define SQL_TYPE_TIME       92
#define SQL_TYPE_TIMESTAMP  93
#endif
See also SQL data types in general.

Links

https://github.com/microsoft/ODBC-Specification/blob/master/Windows/inc/sql.h

Index