dbTalk Databases Forums  

DTS Package

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


Discuss DTS Package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
richard s via SQLMonster.com
 
Posts: n/a

Default DTS Package - 08-24-2005 , 08:38 AM






Any viable way of how to automatically re-execute the failed package. That
is, to re-execute it three times then exit if failed again?
what steps and what will the code look like???

Thanks


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200508/1

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Package - 08-24-2005 , 01:49 PM






You could have a job that has 3 steps linked by failures. Each step
executes the package. have the package fail on first error which should
fail the step and then it should follow on and execute the package again and
again.

i am curious as to why you do not handle this more gracefully
Also what will change mid execution to make the second or third run through
pass.

Allan

"richard s via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
Any viable way of how to automatically re-execute the failed package.
That
is, to re-execute it three times then exit if failed again?
what steps and what will the code look like???

Thanks


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200508/1



Reply With Quote
  #3  
Old   
Thomas Bradshaw via SQLMonster.com
 
Posts: n/a

Default Re: DTS Package - 08-25-2005 , 04:56 PM



I agree. I would create a SQL Agent job that retries the failed package a
number of times. We use this system to process files automatically from our
FTP servers. (Our clients are usually late with their files.)

Here's how I do it:

- From Enterprise Manager
- Right-click DTS package, choose "Schedule Package..."
- Pick a time, you can edit this later, OK
- Navigate to 'Management / SQL Server Agent / Jobs'

- Find your newly created Job
- Right-click "properties"
- Click "Steps" tab
- Edit
- Advanced Tab
- Set Retry Attempts & Retry Interval
- OK, OK .. etc

Tom


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200508/1

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.