C and SQL data types for ODBC and CLI
This topic lists the C and SQL data types for ODBC and CLI applications.
C data types for ODBC applications
You can pass the following C data types when you bind result set columns and parameters from ODBC applications.
SQL_C_DEFAULT
SQL_C_CHAR
SQL_C_LONG
SQL_C_SLONG
SQL_C_ULONG
SQL_C_SHORT
SQL_C_SSHORT
SQL_C_USHORT
SQL_C_FLOAT
SQL_C_DOUBLE
SQL_C_BINARY
SQL_C_NUMERIC
C data types for CLI applications
You can pass the following data type values when you bind result set columns and parameters from CLI applications.
SQL_DEFAULT
SQL_CHAR
SQL_INTEGER
SQL_SMALLINT
SQL_FLOAT
SQL_REAL
SQL_DOUBLE
SQL data types for ODBC and CLI applications
You can pass the following SQL data type values when you bind result set columns and parameters from ODBC and CLI applications.
SQL_CHAR
SQL_VARCHAR
SQL_LONGVARCHAR
SQL_INTEGER
SQL_SMALLINT
SQL_FLOAT
SQL_REAL
SQL_DOUBLE
SQL_DECIMAL
SQL_TYPE_DATE
SQL_TYPE_TIME
SQL_TYPE_TIMESTAMP
SQL_TYPE_DATE
SQL_BINARY
SQL_VARBINARY
SQL_LONGVARBINARY
In the Win32 environment, the ODBC 3.x driver manager is required to use the ODBC 3.51 driver. This version of the driver manager automatically supports both 3.x applications and older, pre-3.x applications. Calls to deprecated APIs by older applications are automatically re-mapped to the 3.x APIs.