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 2005 Forums
 Other SQL Server Topics (2005)
 Handled errors in SQL Server Agent
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JimWhitby
Starting Member

United Kingdom
1 Posts

Posted - 04/09/2012 :  07:18:18  Show Profile  Reply with Quote
Hi,

I've got a BIDS project that has multiple packages getting fired off loading in hundreds of data files.

On day one of the month I want it to do a set of packages and all other days I have it doing other packages. So At the very begnining I have a simple data flow task that does a check using a conditional split, if it is day one I allow the task to continue and if it's not I cause a failure. Then from this I handle the error so that it follows another path.

In BIDS this works fine but as soon as I put it into SQL Server agent it hits the error and falls over, no longer handling it as before.

Is there a simple way of doing a conditional split in the control flow or is there a reason why a failure is handled neat and tidily in BIDS but not once it has been moved to SQL Server agent?

This is driving me mad so any help would be much appreciated.

Thanks

Jim

Edited by - JimWhitby on 04/09/2012 07:19:10

visakh16
Very Important crosS Applying yaK Herder

India
47023 Posts

Posted - 04/09/2012 :  11:16:40  Show Profile  Reply with Quote
why do you need to raise it as an error. why not simply put the check and if its 1st day do rest of processing, otherwise sent a notification back telling that its not 1st day as email or log it in control table

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.06 seconds. Powered By: Snitz Forums 2000