![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How would I go about telling the dts package to go to a certain step? What I want to do is say "if condition A is true, then go to step A of the package, otherwise go to step B" I've got the if ... else part of it down but don't know how to say "go to this step" |
#3
| |||
| |||
|
|
i'm not sure ti have understood yuor question. If you want to choose the DTS step to call on the basis of an if condition, this may be a solution. In your VBScript set a global variable value on the basis of your condition, and then connect the TaskA and TaskB to the task with your VBscript. Then right click TaskA/Properties/Workflow properties. Go to the options Tab, select "Use ActiveX script" and click "properties". Finally define a VBscript function like this Function Main() if DTSGlobalVariables("name").Value = .... then Main = DTSStepScriptResult_ExecuteTask else Main = DTSStepScriptResult_DontExecuteTask end if End Function Do the same for taskB. Sorry for my poor english, bye Francesco Anti "DBA72" <DBA72 (AT) discussions (DOT) microsoft.com> wrote in message news:44C6767D-6C73-40C6-A9B3-8E8DBE58CFFC (AT) microsoft (DOT) com... How would I go about telling the dts package to go to a certain step? What I want to do is say "if condition A is true, then go to step A of the package, otherwise go to step B" I've got the if ... else part of it down but don't know how to say "go to this step" |
![]() |
| Thread Tools | |
| Display Modes | |
| |