dbTalk Databases Forums  

Selectively executing steps disablestep

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Selectively executing steps disablestep in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fcagg
 
Posts: n/a

Default Selectively executing steps disablestep - 04-14-2004 , 09:09 AM






I have a package with many steps.
Depending on the circumstances, I only want certain steps
to execute.
The steps run serially, and are connected with an "On
Completion" workflow.
Each step's DisableStep property is valued using an INI
that is set by a Dynamic Property Task that runs first.
The idea is if I only want to execute the odd numbered
steps, I would set the DisableStep property of the even
numbered steps to 1(TRUE).
The problem is that dts does not consider a disabled step
Completed (or Failed for that matter).
Is there a way to selectively execute certain steps,
without modifying the package?

Thanks.

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Selectively executing steps disablestep - 04-18-2004 , 05:28 AM






In message <2b3f01c4222a$1fc6a760$3a01280a (AT) phx (DOT) gbl>, fcagg
<Fcaggiano (AT) us (DOT) imshealth.com> writes
Quote:
I have a package with many steps.
Depending on the circumstances, I only want certain steps
to execute.
The steps run serially, and are connected with an "On
Completion" workflow.
Each step's DisableStep property is valued using an INI
that is set by a Dynamic Property Task that runs first.
The idea is if I only want to execute the odd numbered
steps, I would set the DisableStep property of the even
numbered steps to 1(TRUE).
The problem is that dts does not consider a disabled step
Completed (or Failed for that matter).
Is there a way to selectively execute certain steps,
without modifying the package?

Thanks.
Since disabled step does not match an On Completed constraint, what you
need to do is change the constraint to a On Not Run. Constraints can
either use the step result or step status. All these properties and
constants are documented in Books Online, but here is a sample-

Skip the execution of an individual Task
(http://www.sqldts.com/default.aspx?214)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.