p&d Teknik AB

Programmering, Databaser och Dokumentation


SQL Server - Integration Services.

Datatyper i Integration Services.
Dessa tabeller visar hur Integration Services Data Flow tolkar inkommande datatyper från SQL Server 2005. Dessutom visar tabellen vilken datatyp i SQL Server 2005 som blir resultatet när Integration Services SQL Server Destination skapar kolumner baserat på dataflödet.

Numeriska datatyper
Source datatypSSIS datatypSQL Destination
skapad datatyp
intDT_I4int
smallintDT_I2smallint
tinyintDT_UI1tinyint
bigintDT_I8bigint
bitDT_BOOLbit
decimal(x,y)DT_NUMERIC(x,y)numeric(x,y)
numeric(x,y)DT_NUMERIC(x,y)numeric(x,y)
-DT_DECIMAL(x,y)decimal(x,y)
moneyDT_CYmoney
smallmoneyDT_CYmoney
floatDT_R8float
realDT_R4real
-DT_I1*smallint
-DT_UI2*int
-DT_UI4*bigint
-DT_UI8*numeric(20,0)
* inkompatibel typ
Text/teckendatatyper
Source datatypSSIS datatypSQL Destination
skapad datatyp
char(x)DT_STR(x)varchar(x)
varchar(x)DT_STR(x)varchar(x)
varchar(MAX)DT_TEXTtext
textDT_TEXTtext
nchar(x)DT_WSTR(x)nvarchar(x)
nvarchar(x)DT_WSTR(x)nvarchar(x)
nvarchar(MAX)DT_NTEXTntext
ntextDT_NTEXTntext
Binära datatyper
Source datatypSSIS datatypSQL Destination
skapad datatyp
binary(x)DT_BYTES(x)binary(x)
varbinary(x)DT_BYTES(x)binary(x)
varbinary(MAX)DT_IMAGEimage
imageDT_IMAGEimage
Övriga datatyper
Source datatypSSIS datatypSQL Destination
skapad datatyp
datetimeDT_DBTIMESTAMPdatetime
smalldatetimeDT_DBTIMESTAMPdatetime
-DT_FILETIME*datetime
-DT_DATE*datetime
-DT_DBDATE*datetime
-DT_DBTIME*datetime
timestampDT_BYTES(8)binary(8)
uniqueidentifyerDT_GUIDuniqueidentifyer
xmlDT_NTEXTntext
variant *DT_WSTR(255)nvarchar(255)
* inkompatibel typ
Sidan använder cookies för att utöka din visuella upplevelse...