Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
JaybeeSQL
Posting Yak Master
112 Posts |
Posted - 2014-02-07 : 05:29:40
|
Hi all ,In data flow, we have a Ole db source that uses a view to check a table for data. Upon success there's a Flat File Destination that dumps any rows found into a .csv. Upon success in Control Flow there's an Execute SQL task that fires off an SP to send an email. I'd like to reconfigure this so that email is sent only if there ARE any rows. Otherwise the package should end without failure.Is a conditional split the way to go? Cheers,JB |
|
shantheguy
Starting Member
22 Posts |
Posted - 2014-02-24 : 04:24:54
|
You can go with the precedence constraint get the row count into a variable and check this value in precedence constraint like count >0 then send an email.. else package will stop without reporting failure. |
|
|
|
|
|