Microsoft SQL Server Data Type
|
JDBC Data Type
|
bigint
|
BIGINT
|
bigint identity
|
BIGINT
|
binary
|
BINARY
|
bit
|
BIT
|
char
|
CHAR
|
date
|
DATE
|
datetime
|
TIMESTAMP
|
datetime2
|
TIMESTAMP
|
datetimeoffset1
|
VARCHAR or TIMESTAMP
|
decimal
|
DECIMAL
|
decimal() identity2
|
DECIMAL
|
float
|
FLOAT
|
image3
|
LONGVARBINARY
|
int
|
INTEGER
|
int identity
|
INTEGER
|
money
|
DECIMAL
|
nchar
|
NCHAR
|
ntext4
|
LONGNVARCHAR
|
numeric
|
NUMERIC
|
numeric() identity5
|
NUMERIC
|
nvarchar
|
NVARCHAR
|
nvarchar(max)
|
LONGNVARCHAR
|
real
|
REAL
|
smalldatetime
|
TIMESTAMP
|
smallint
|
SMALLINT
|
smallint identity6
|
SMALLINT
|
smallmoney
|
DECIMAL
|
sql_variant7
|
VARCHAR
|
sysname
|
VARCHAR
|
text8
|
LONGVARCHAR
|
time9
|
TIME or TIMESTAMP
|
timestamp
|
BINARY
|
tinyint
|
TINYINT
|
tinyint identity10
|
TINYINT
|
uniqueidentifier
|
CHAR
|
varbinary
|
VARBINARY
|
varbinary(max)
|
LONGVARBINARY
|
varchar
|
VARCHAR
|
varchar(max)
|
LONGVARCHAR
|
SQLXML
|