dbTalk Databases Forums  

Run Task at the End of the Package?

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


Discuss Run Task at the End of the Package? in the microsoft.public.sqlserver.dts forum.



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

Default Run Task at the End of the Package? - 09-21-2006 , 11:25 AM






All,

This is for SQL 2000 DTS.

It is possible to run a task (ActiveX in this case) at the completion
of a package, regardless of sucess/failure of any of the steps?

I have a package that has a number of steps, each of which run only
when the preceding step was sucessful. I would like to run an ActiveX
script at the end of these steps, regardless of whether all the steps
were completed successfully or not. If I add a step at the end, it
will only get hit if all the steps are successful.

I believe I can do this if I wrap the package in another package, but
I'd like to avoid this if possible. I know I can also have all the
steps branch via On Failure to the final task as well. I was hoping
there was a more elegant way of doing this.


Thanks for any help.


Reply With Quote
  #2  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Run Task at the End of the Package? - 09-21-2006 , 12:06 PM






I think you have it figured out.

Branching to the last step is the 'best' method. In actuality, it is no
different that having any failed step start another package or job.

On failure, you have to do something or quit. Sounds like you want to do
something.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous


<psandler70 (AT) hotmail (DOT) com> wrote

Quote:
All,

This is for SQL 2000 DTS.

It is possible to run a task (ActiveX in this case) at the completion
of a package, regardless of sucess/failure of any of the steps?

I have a package that has a number of steps, each of which run only
when the preceding step was sucessful. I would like to run an ActiveX
script at the end of these steps, regardless of whether all the steps
were completed successfully or not. If I add a step at the end, it
will only get hit if all the steps are successful.

I believe I can do this if I wrap the package in another package, but
I'd like to avoid this if possible. I know I can also have all the
steps branch via On Failure to the final task as well. I was hoping
there was a more elegant way of doing this.


Thanks for any help.




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

Default Re: Run Task at the End of the Package? - 09-21-2006 , 01:36 PM



Catching and responding to failures within DTS is not handled to
naturally - I might suggest you wrap it using a STEP 2 from a SQL_JOB
that executes the package; in that case you can signal that on JOB STEP
1 failure (or success) merely goto next STEP. STEP 2 would of course
could be an ActiveX script.

Arnie Rowland wrote:
Quote:
I think you have it figured out.

Branching to the last step is the 'best' method. In actuality, it is no
different that having any failed step start another package or job.

On failure, you have to do something or quit. Sounds like you want to do
something.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous


psandler70 (AT) hotmail (DOT) com> wrote in message
news:1158855941.230878.197360 (AT) h48g2000cwc (DOT) googlegroups.com...
All,

This is for SQL 2000 DTS.

It is possible to run a task (ActiveX in this case) at the completion
of a package, regardless of sucess/failure of any of the steps?

I have a package that has a number of steps, each of which run only
when the preceding step was sucessful. I would like to run an ActiveX
script at the end of these steps, regardless of whether all the steps
were completed successfully or not. If I add a step at the end, it
will only get hit if all the steps are successful.

I believe I can do this if I wrap the package in another package, but
I'd like to avoid this if possible. I know I can also have all the
steps branch via On Failure to the final task as well. I was hoping
there was a more elegant way of doing this.


Thanks for any help.



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.