tinyint, smallint, bit, int |
SMALLINT for the first three, INTEGER for int, BIGINT for bigint. |
decimal, numeric, money |
DECIMAL up to 31 digits. Wider ones become DECFLOAT(34), which holds 34 digits exactly. money becomes DECIMAL(19,4). |
datetime, datetime2, datetimeoffset |
TIMESTAMP(n) with the same fraction digits. A datetimeoffset arrives as its UTC instant. |
time |
TIME. DB2 keeps whole seconds, so a time with a fraction is refused and named in the log, never cut. |
varchar, char, nvarchar, nchar |
VARCHAR and CHAR, sized in characters. nvarchar and nchar become VARGRAPHIC and GRAPHIC. (max) and text become CLOB. |
varbinary, image, uniqueidentifier |
VARBINARY or BLOB, byte for byte. uniqueidentifier becomes CHAR(36). |
| Identity, defaults |
An identity column keeps its values and the next insert continues after them. Defaults arrive exactly, quotes included. |