dbTalk Databases Forums  

Bypass Execute SQL Task in DTS Workflow

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


Discuss Bypass Execute SQL Task in DTS Workflow in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
icebold54@hotmail.com
 
Posts: n/a

Default Bypass Execute SQL Task in DTS Workflow - 06-01-2005 , 08:27 AM






Hi to everybody

Does anybody know how can I bypass an Execute SQL Task in a DTS
Workflow?
The bypass must be decided by the user in every execution.
I've designed the following workflow:

[ExecuteSQLTask]
[tasks]-[ActiveX Task For Path Decision] / \[Data
\ ----------------- /

Transformation Task]


Unfortunately it fails on the last Data Transformation Task because of
precedence constraints (can't make complex precedence constraints in
the Designer).

The ActiveX Task For Path Decision is something like this:

Dim sMsg, lResult
sMsg = "Do you want to branch Execution?" & vbCrLf & _
"Yes" & vbCrLf & _
"No"
lResult = MsgBox(sMsg, vbYesNo)

If lResult = vbYes Then
DTSGlobalVariables("Branch_1").Value = True
Else
DTSGlobalVariables("Branch_1").Value = False
End If

If (DTSGlobalVariables("Branch_1").Value = True) Then
Main = DTSTaskExecResult_Success
Else
Main =DTSTaskExecResult_Failure
End If


Any help will be wellcomed

Greetings,
David Grant


Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Bypass Execute SQL Task in DTS Workflow - 06-01-2005 , 08:58 AM






Hi,
"<icebold54 (AT) hotmail (DOT) com" wrote:
Quote:
Hi to everybody
Does anybody know how can I bypass an Execute SQL Task in a DTS
Workflow?
The bypass must be decided by the user in every execution.
here is an exact example of your scenario.
http://www.sqldts.com/default.aspx?214

Helge


Reply With Quote
  #3  
Old   
icebold54@hotmail.com
 
Posts: n/a

Default Re: Bypass Execute SQL Task in DTS Workflow - 06-01-2005 , 09:57 AM



Thank you for the link Helge, this has solved my issue.


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.