The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.

DB2 Data Types Mapping

XPO creates these column types when updating the DB2 database schema and expects them in existing databases.

.NET Type Database Column Type
Boolean char(1)
Byte smallint
SByte numeric(3,0)
Char graphic(1)
Decimal decimal(28,4)
Double double precision
Single real
Int16 smallint
UInt16 numeric(5,0)
Int32 int
UInt32 numeric(10,0)
Int64 bigint
UInt64 numeric(20,0)
Guid char(36)
String vargraphic(N)
DateTime timestamp
TimeSpan double precision
Byte[] blob
Unlimited size string dbclob
See Also