SQL Type Name |
Data
type
|
ODBC Ttpe |
OLE DB type |
Description |
BIGINT
|
-5
|
SQL_BIGINT
|
DBTYPE_I8
|
Signed 64-bit integer.
|
BINARY
|
-2
|
SQL_BINARY
|
DBTYPE_BYTES
|
Binary data of fixed length n (1 <= n <= 255).
|
BIT
|
-7
|
SQL_BIT
|
DBTYPE_BOOL
|
Single bit binary data (0 or 1).
|
CHAR
|
1
|
SQL_CHAR
|
DBTYPE_STR
|
Character string of fixed string length n (1<= n<=254).
|
DATE
|
9
|
SQL_DATE
|
DBTYPE_DBDATE
|
Date containing year, month and day.
|
DOUBLE
|
8
|
SQL_DOUBLE
|
DBTYPE_R8
|
Signed, approximate, numeric value with a mantissa precision 15 (zero or absolute value 10-308 to 10308).
|
FLOAT
|
6
|
SQL_FLOAT
|
DBTYPE_R8
|
Signed, approximate, numeric value with a mantissa precision 15 (zero or absolute value 10-308 to 10308).
|
INTEGER
|
4
|
SQL_INTEGER
|
DBTYPE_I4
|
Exact numeric value with precision 10 and scale 0. (signed: -231 <=n <=231-1, unsigned:0<=n<=232-1).
|
LONGVARBINARY
|
-4
|
SQL_
LONGVARBINARY
|
DBTYPE_BYTES
|
Variable length binary data of any size < 2 GB.
|
LONGVARCHAR
|
-1
|
SQL_ LONGVARCHAR |
|
Variable length character string up to 2 GB in length.
|
NUMERIC
|
2
|
SQL_NUMERIC
|
DBTYPE_STR
|
Signed, exact, numeric value with a precision p and scale s (1<=p<=40, 0<=s<=p).
|
REAL
|
7
|
SQL_REAL
|
DBTYPE_R4
|
Signed, approximate, numeric value with a mantissa precision 7 (zero or absolute value 10-38 to 1038).
|
SMALLINT
|
5
|
SQL_SMALLINT
|
DBTYPE_I2
|
Exact numeric value with precision 5 and scale 0. (signed: -32768 <=n <=32767, unsigned:0<=n<=65535).
|
TIME
|
10
|
SQL_TIME
|
DBTYPE_DBTIME
|
Time containing hour, minute and seconds.
|
TIMESTAMP
|
11
|
SQL_TIMESTAMP
|
DBTYPE_
DBTIMESTAMP
|
Date/time data.
|
TINYINT
|
-6
|
SQL_TINYINT
|
DBTYPE_I1
|
Exact numeric value with precision 3 and scale 0. (signed: -128 <=n<=127, unsigned: 0<=n<=255).
|
VARBINARY
|
-3
|
SQL_VARBINARY
|
DBTYPE_BYTES
|
Variable length binary data with maximum size N as defined in the schema definition. Optimized for N <=4 KB.
|
VARCHAR
|
12
|
SQL_VARCHAR
|
DBTYPE_STR
|
Variable length character string with maximum size N as defined in the schema definition. Optimized for N <= 4 KB.
|
WCHAR
|
-8
|
SQL_WCHAR
|
DBTYPE_STR
|
Unicode character string of fixed length n (1<= n<=254).
|
WLONGVARCHAR
|
-10
|
SQL_ WLONGVARCHAR |
DBTYPE_STR
|
Variable length Unicode string of any size < 2 GB.
|
WVARCHAR
|
-9
|
SQL_WVARCHAR
|
DBTYPE_STR
|
Variable length Unicode string with maximum size N as defined in the schema definition. Optimized for N <= 4 KB.
|