Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Confirm necessary task
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

112 Posts

Posted - 02/07/2014 :  05:29:40  Show Profile  Reply with Quote
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?



Starting Member

22 Posts

Posted - 02/24/2014 :  04:24:54  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000