MS SQL Server data type
|
SQL-ODBC data type1
|
OpenEdge-equivalent data types
|
integer
|
SQL_INTEGER
|
INTEGER2
(DECIMAL)
(INT64)3
|
bigint
|
SQL_BIGINT
|
INT644
|
smallint
|
SQL_SMALLINT
|
INTEGER
(DECIMAL or LOGICAL)
|
tinyint
|
SQL_TINYINT
|
INTEGER
(DECIMAL or LOGICAL)
|
decimal
|
SQL_DECIMAL
|
DECIMAL
(INTEGER)
(INT64)5
|
numeric6
|
SQL_DECIMAL
|
DECIMAL
(INTEGER)
(INT64)7
|
float8
|
SQL_FLOAT
|
DECIMAL
(INTEGER)
(INT64)9
|
double precision
|
SQL_DOUBLE
|
DECIMAL
(INTEGER)
(INT64)10
|
real
|
SQL_REAL
|
DECIMAL
(INTEGER)
(INT64)11
|
SQL_CHAR
|
CHARACTER
|
|
SQL_NCHAR
|
CHARACTER
|
|
SQL_VARCHAR
|
CHARACTER
|
|
varchar(max)
|
SQL_VARCHAR
SQL_LONGVARCHAR
|
CHARACTER
CLOB
|
nvarchar18
|
SQL_NVARCHAR
|
CHARACTER
|
text19
|
SQL_LONGVARCHAR
|
CHARACTER
CLOB
|
ntext
|
SQL_LONGVARCHAR
|
CHARACTER
CLOB
|
nvarchar(max)
|
SQL_VARCHAR
|
CHARACTER
CLOB
|
money
|
SQL_DECIMAL
|
DECIMAL
(INTEGER)
|
smallmoney
|
SQL_DECIMAL
|
DECIMAL
(INTEGER)
|
datetime
|
SQL_TIMESTAMP
|
CHARACTER20
(DATE)21
|
smalldatetime
|
SQL_TIMESTAMP
|
CHARACTER22
(DATE)23
|
binary24
|
SQL_BINARY
|
CHARACTER
|
varbinary
|
SQL_VARBINARY
|
CHARACTER
|
varbinary(max)
|
SQL_VARBINARY
SQL_LONGVARBINARY
|
CHARACTER
BLOB
|
image
|
SQL_LONGVARBINARY
|
CHARACTER25
BLOB
|
bit
|
SQL_BIT
|
LOGICAL
|
timestamp26
|
SQL_VARBINARY
|
CHARACTER
|
Depends on underlying type
|
Depends on underlying type
|
|
uniqueidentifier29
|
SQL_VARBINARY
|
CHARACTER
|
compounded columns30
|
Depends on underlying type
|
Depends on underlying type
|