SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

JaybeeSQL
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?

Cheers,

JB

shantheguy
Starting Member

India
21 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  
 New 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.05 seconds. Powered By: Snitz Forums 2000