![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to get an ActiveX script task to fail. Using the script below it always goes to the on-success leg. Can someone tell me how to fail this task so it goes to the on-failure leg/. '************************************************* ******************** * ' Visual Basic ActiveX Script '************************************************* ******************** *** Function Main() if DTSGlobalVariables("RUNFLAG").Value <> "Y" then Main = DTSTaskExecResult_Failure else Main = DTSTaskExecResult_Failure end if Main = 0 End Function |
![]() |
| Thread Tools | |
| Display Modes | |
| |