1 reply
by streamlogic
Ron,
To do this, I had to write a custom function which was called within an ActiveX task. This function created a SQL Query Task using the API, set the SQL, executed it, and returned a recordset or value.
The key, once the 0 or -1 comes back, is to disable and enable the tasks which should run next. This is somewhat difficult to explain in words. For example, if a 0 comes back, you would write in the ActiveX:
task_to_disable.enabled = false
task_to_enable.enabled = true
task_to_enable.waiting = true
I'm not sure if this syntax is 100%, since I don't have DTS open in front of me.
The key I have found is writing the custom function to execute dynamic SQL via ActiveX and use conditional logic within the ActiveX script to "branch" the logic.
Hope this helps,
Curtis
StreamLogic Inc.
http://www.StreamLogicInc.com
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending