dbTalk Databases Forums  

Implementing OR in DTS workflow constraints

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


Discuss Implementing OR in DTS workflow constraints in the microsoft.public.sqlserver.dts forum.



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

Default Implementing OR in DTS workflow constraints - 02-14-2004 , 07:32 PM






Hi,
I have following workflow to be implemented in my dts package.

s s s s s
step1 ---> step2--->step3--->step4--->step5--->step6

Now If step1 OR step2 OR step3 OR step4 OR step5 OR step 6 fails
i want to execute step7.

As OR is not available, in order to implement this i will need to have
six different step icons, one for failure of each step from step1 to
step6.

I read following Darren's article for OR processing.
http://www.sqldts.com/default.aspx?218

But if i implement this idea, i will have to write very long code.

Please help me on this.

Thanks,
Pradeep

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Implementing OR in DTS workflow constraints - 02-15-2004 , 05:28 AM






In message <2fe85a61.0402141732.5fa128 (AT) posting (DOT) google.com>, pradeep
<pradeep.mittal (AT) citigroup (DOT) com> writes
Quote:
Hi,
I have following workflow to be implemented in my dts package.

s s s s s
step1 ---> step2--->step3--->step4--->step5--->step6

Now If step1 OR step2 OR step3 OR step4 OR step5 OR step 6 fails
i want to execute step7.

As OR is not available, in order to implement this i will need to have
six different step icons, one for failure of each step from step1 to
step6.

I read following Darren's article for OR processing.
http://www.sqldts.com/default.aspx?218

But if i implement this idea, i will have to write very long code.

Please help me on this.

Thanks,
Pradeep
Pradeep,

There is no reasonable way of doing this. The article you mention
demonstrates the only way it can be done, but as you say it involves a
lot of code and is not easy to maintain, and I would not recommend using
it for something like this, it is just too much work.

Having individual error tasks does have some advantages, in that you can
code information about the failed step and also any potential clean-up
logic specific to that task.

The only other alternative is to try and make better use of the logging
options in DTS and use that to do what you need to achieve.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
pradeep
 
Posts: n/a

Default Re: Implementing OR in DTS workflow constraints - 02-15-2004 , 10:47 PM



Darren Green <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
In message <2fe85a61.0402141732.5fa128 (AT) posting (DOT) google.com>, pradeep
pradeep.mittal (AT) citigroup (DOT) com> writes
Hi,
I have following workflow to be implemented in my dts package.

s s s s s
step1 ---> step2--->step3--->step4--->step5--->step6

Now If step1 OR step2 OR step3 OR step4 OR step5 OR step 6 fails
i want to execute step7.

As OR is not available, in order to implement this i will need to have
six different step icons, one for failure of each step from step1 to
step6.

I read following Darren's article for OR processing.
http://www.sqldts.com/default.aspx?218

But if i implement this idea, i will have to write very long code.

Please help me on this.

Thanks,
Pradeep

Pradeep,

There is no reasonable way of doing this. The article you mention
demonstrates the only way it can be done, but as you say it involves a
lot of code and is not easy to maintain, and I would not recommend using
it for something like this, it is just too much work.

Having individual error tasks does have some advantages, in that you can
code information about the failed step and also any potential clean-up
logic specific to that task.

The only other alternative is to try and make better use of the logging
options in DTS and use that to do what you need to achieve.
thanks a lot darren. I suppose repeating the error tasks is the only way.


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.