|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Monday, February 18, 2013 2:08 AM
Points: 672,
Visits: 725
|
|
Hi Friends,
I have a scenario that i am loading data into a table. After that i am getting the maximum value of the primary key and i will update into a Counter table using Execute SQL task. My need is if the data flow task does not insert any records it should not go to the next joined Execute SQL task. So how can i set the condition?
please help me friends. Any suggestions would be really appreciated.
Thanks, Charmer
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 3:50 AM
Points: 1,710,
Visits: 427
|
|
before each load of data set a variable say (RowsLoaded) to -1 or some arbitrary value then use a rowcount and assign the value to the variable when loading your data and after the load on the control flow use a expression and condition to test for success and the variable being > 0 then action the update.
hope this helps guide you.
I know it is not a fully detailed explanation so if you need any more help let me know.
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Monday, February 18, 2013 2:08 AM
Points: 672,
Visits: 725
|
|
Terry300577 (1/2/2013) before each load of data set a variable say (RowsLoaded) to -1 or some arbitrary value then use a rowcount and assign the value to the variable when loading your data and after the load on the control flow use a expression and condition to test for success and the variable being > 0 then action the update.
hope this helps guide you.
I know it is not a fully detailed explanation so if you need any more help let me know.
Thank you so much Terry...It works
Thanks, Charmer
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 3:50 AM
Points: 1,710,
Visits: 427
|
|
| nice one, glad to be of help.
|
|
|
|