CASE statement in SSIS
-
Thursday, December 06, 2012 9:28 PM
Hi Friends
I have my data in flat file, Now I'm loading it into table.
Now I have a column in my flat file which has int values. If the value is '1' then I want it to put it in destination table as '1' other wise I want to put it as NULL.
How to do this.
Royal Thomas
All Replies
-
Thursday, December 06, 2012 10:28 PM
I wrote a expression in derived column like this
[col_name] != "1" ||[col_name] != "13"? [col_name] : "NULL"
but is this the way to pass NULL
Royal Thomas
-
Thursday, December 06, 2012 10:32 PM
How about this
col_name!= "1" || col_name!= "13" ? col_name: NULL(DT_WSTR, 10)
Royal Thomas
- Marked As Answer by Royal Thomas Friday, December 07, 2012 12:06 AM
-
Saturday, March 02, 2013 9:28 AMLooping for knowledge
Thanks

