Answered by:
conditional split expression with boolean data type

Question
-
Expression is in conditional split. I need the values in Provider field to change in Dest_Provider. If it's a 1,0 or null. Following statement works if it's 1 or 0, but not for null. So, if Provider is null then dest_provider is null, if Provider = 0 then dest_provider
= 0 and if Provider = 1 then dest_provider = 1. Thanks
((ISNULL((DT_BOOL)Provider) ? (DT_BOOL)0 : (DT_BOOL)Provider) != (ISNULL((DT_BOOL)Dest_Provider) ? (DT_BOOL)0 : (DT_BOOL)Dest_Provider))
LISA86
Thursday, May 12, 2016 7:38 PM
Answers
-
Hi LISA86,
According to your description, I think using a Derived Column Transofrmation or using a Copy Column Transofrmation is better than using Conditional Split Transofrmation in SSIS.
If you choose Derived Column Transofrmation Reference the below.
If you have any other questions, please feel free to post.
Regards,
Seif Wang- Edited by Eric__Zhang Friday, May 13, 2016 2:52 AM formatting
- Edited by Seif Wang Friday, May 13, 2016 2:52 AM
- Proposed as answer by Seif Wang Tuesday, May 17, 2016 11:09 AM
- Marked as answer by Eric__Zhang Tuesday, May 24, 2016 12:58 PM
Friday, May 13, 2016 2:51 AM
All replies
-
Can you state what this conditional split is suppose to do? The way that a conditional split works is that you have a series of Boolean expressions that define outputs. If a Boolean expression returns true for a row, then the row will be output for that row.
Russel Loski, MCSE Data Platform/Business Intelligence Twitter: @sqlmovers; blog: www.sqlmovers.com
Thursday, May 12, 2016 8:46 PM -
-
Hi LISA86,
According to your description, I think using a Derived Column Transofrmation or using a Copy Column Transofrmation is better than using Conditional Split Transofrmation in SSIS.
If you choose Derived Column Transofrmation Reference the below.
If you have any other questions, please feel free to post.
Regards,
Seif Wang- Edited by Eric__Zhang Friday, May 13, 2016 2:52 AM formatting
- Edited by Seif Wang Friday, May 13, 2016 2:52 AM
- Proposed as answer by Seif Wang Tuesday, May 17, 2016 11:09 AM
- Marked as answer by Eric__Zhang Tuesday, May 24, 2016 12:58 PM
Friday, May 13, 2016 2:51 AM