Wednesday, September 10, 2014

SQL Server Data Types Vs SSIS Data Types

SQL Server Data Types Vs SSIS Data Types

Sql Server Data TypeSSIS Data TypeSSIS Expression
Single-Byte Signed Integer(DT_I1)
SmallintTwo-Byte Signed Integer(DT_I2)
IntFour-Byte Signed Integer(DT_I4)
BigintEight-Byte Signed Integer(DT_I8)
TinyintSingle-Byte Unsigned Integer(DT_UI1)
Two-Byte Unsigned Integer(DT_UI2)
Four-Byte Unsigned Integer(DT_UI4)
Eight-Byte Unsigned Integer(DT_UI8)
RealFloat(DT_R4)
FloatDouble-Precision Float(DT_R8)
Char, VarcharString(DT_STR, «length», «code_page»)
Nchar, Nvarchar, Sql_Variant, XmlUnicode Text Stream(DT_WSTR, «length»)
DateDate(DT_DATE)
BitBoolean(DT_BOOL)
Decimal, NumericNumeric(DT_NUMERIC, «precision», «scale»)
DecimalDecimal(DT_DECIMAL, «scale»)
Smallmoney, MoneyCurrency(DT_CY)
UniqueidentifierUnique Identifier(DT_GUID)
Binary, Varbinary, TimestampByte Stream(DT_BYTES, «length»)
DateDatabase Date(DT_DBDATE)
Database Time(DT_DBTIME)
Time(P)Database Time With Precision(DT_DBTIME2, «scale»)
Datetime, SmalldatetimeDatabase Timestamp(DT_DBTIMESTAMP)
Datetime2Database Timestamp With Precision(DT_DBTIMESTAMP2, «scale»)
Datetimeoffset(P)Database Timestamp With Timezone(DT_DBTIMESTAMPOFFSET, «scale»)
File Timestamp(DT_FILETIME)
ImageImage(DT_IMAGE)
TextText Stream(DT_TEXT, «code_page»)
NtextUnicode String(DT_NTEXT)

No comments:

Post a Comment