dbTalk Databases Forums  

Bypassing a step with DTS but allowing the other steps to continue

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


Discuss Bypassing a step with DTS but allowing the other steps to continue in the microsoft.public.sqlserver.dts forum.



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

Default Bypassing a step with DTS but allowing the other steps to continue - 07-19-2006 , 02:42 PM






I set up an activex script to bypass a step under a specific condition:

oPKG.Steps("DTSStep_DTSExecutePackageTask_15").Dis ableStep = True

Assuming the senario listed below, how can Step 3 run if it depends on Step
2 ONLY when Step 2 is run ?

First Step
Step 1 Always runs

On Success of above step runs:
Step 2 Runs Conditionally if other conditions are met

On Success of above step runs
Step 3 Always runs


Reply With Quote
  #2  
Old   
Frans van Bree
 
Posts: n/a

Default RE: Bypassing a step with DTS but allowing the other steps to continue - 07-20-2006 , 04:29 AM






It is possible like this:

Set oStep = oPkg.Steps("<name of step 3")
oStep.ExecutionStatus = DTSStepExecStat_Waiting

E.g. by adding a step 1a that checks your additional conditions and if they
are NOT met:
if not conditions
oPKG.Steps("DTSStep_DTSExecutePackageTask_15").Dis ableStep = True
Set oStep = oPkg.Steps("<name of step 3")
oStep.ExecutionStatus = DTSStepExecStat_Waiting
end if

Cannot test it here, but it should work.

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.