Database Ingestion and Replication > Default data-type mappings > Db2 for LUW Source and Microsoft SQL Server Target
  

Db2 for LUW Source and Microsoft SQL Server Target

The following table identifies the recommended data-type mappings for Database Ingestion and Replication configurations with a Db2 for Linux, UNIX, and Windows (LUW) source and a Microsoft SQL Server target:
Db2 for LUW Source Data Type
Microsoft SQL Server Target Data Type
bigint
bigint
binary(size), 1 <= size <= 255
varbinary(size), 1 <= size <= 255
boolean
bit
char for bit data
varbinary
char(size) for bit data, 2 <= size <= 255
varbinary(size), 2 <= size <= 255
character(size), 1 <= size <= 255
varchar(size), 1 <= size <= 255
date
date
decfloat(precision), 16 <= p <= 34
varchar(255)
decimal(p,s), 1 <= p <= 31, 0 <= s <= 31
decimal(p,s), 1 <= p <= 31, 0 <= s <= 31
double
float
integer
int
long varchar
varchar(max)
long varchar for bit data
varbinary(max)
real
real
smallint
smallint
time
time(0)
timestamp(precision), 0 <= p <= 7
datetime2(precision), 0 <= p <= 7
timestamp(precision), 8 <= p <= 12
varchar(size), 28 <= size <= 32
varbinary(size), 1 <= size <= 32672
varbinary(size), 1 <= size <= max
varchar(size) for bit data, 1 <= size <= 32672
varbinary(size), 1 <= size <= max
varchar(size), 1 <= size <= 32672
varchar(size), 1 <= size <= max