Database Ingestion and Replication > Default data-type mappings > Db2 for LUW Source and Microsoft Azure Synapse Analytics Target
  

Db2 for LUW Source and Microsoft Azure Synapse Analytics 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 Azure Synapse Analytics target:
Db2 for LUW Source Data Type
Microsoft Azure Synapse Analytics Target Data Type
bigint
bigint
binary(size), 1 <= size <= 255
binary(size), 1 <= size <= 255
blob
varbinary(max)
boolean
bit
char for bit data
binary
char(size) for bit data, 2 <= size <= 255
binary(size), 2 <= size <= 255
char(size), 1 <= size <= 255
char(size), 1 <= size <= 255
clob
varchar(max)
date
date
dbclob
varchar(max)
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)
long vargraphic
varchar(max)
real
real
smallint
smallint
time
time(0)
timestamp(precision), 0 <= p <= 7
datetime2(precision), 0 <= p <= 7
timestamp(precision), 8 <= p <= 12
char(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
xml
varchar(max)
Note:
If you're replicating data from multiple LOB columns in a row, you must determine how much space to allow for all of them. The total row size can't exceed 1000000 bytes (1MB) on the Synapse Analytics target.