Expression Cast Type (SSIS)


Cast string to numeric

syntax  :  (DT_NUMERIC,<<precision>>,<<scale>>)

example : (DT_NUMERIC,18,2)SUBSTRING(LogDetail,17,8)

Cast number to string

syntax : (DT_STR,<<length>>,<<code_page>>)

example : (DT_STR,8,874)TransactionDate

Cast string to date (TransactionDate variable type string)

syntax : (DT_DATE)

example : (DT_DATE)TransactionDate

you can look cast possible type in folder tree ‘Type Casts’

Image

Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: