Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Conditional Execution of DTS Package. Expand / Collapse
Author
Message
Posted Friday, October 2, 2009 12:45 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 4:42 AM
Points: 102, Visits: 336
Good Day please assist me in this daunting task whcih i am trying to achieve:
I have a DTS package which is scheduled to execute through out the month, I want to stop this task from running on the 1st of every month, is there a way to edit the packge and insert a task where I can achieve this.
This can assist my in alot of other solution, In 2005/2008 its a bit easier because you can use Sequence Container in the SSIS package what can I use in SQL 2000
Post #796764
Posted Friday, October 2, 2009 10:42 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Wednesday, November 19, 2014 11:13 AM
Points: 4,064, Visits: 5,360
You could use an activeX script in the workflow properties of the first task in the package to check the current date and report a failure which would stop the package.

But I would put the logic in the job that runs the package. Simply put a query in the first job step that checks the current date and skip the step that executes the package if it's the first of the month.

I'm pretty sure I've seen other threads on SSC about conditionally running a job. You could try searching this site for them.


Greg
Post #797077
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse