dbTalk Databases Forums  

SQL 2000 DTS's running via a Scheuled Job

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


Discuss SQL 2000 DTS's running via a Scheuled Job in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
=?Utf-8?B?Sm9uIERlcmJ5c2hpcmU=?=
 
Posts: n/a

Default SQL 2000 DTS's running via a Scheuled Job - 05-30-2006 , 04:11 AM






Hi,

I have a number of DTS's that are executed each morning via a Scheduled Job.

Sometimes I find that the Job has got "stuck" on a Step (DTS) and does not
"stop" until I manually stop the job myself through EM.

Question is: How can I give my DTS's a Maximum Expected Run Time?

e.g. Job Step 2 - which runs DTS "MySecondDTS" should only take 2 minutes to
run, therefore I'd like to set a Max run time of 10 minutes.

Thanks for helping.

Jon Derbyshire

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

Default Re: SQL 2000 DTS's running via a Scheuled Job - 05-30-2006 , 04:19 AM






Hello Jon,

AFAIK you can't. Once you kick off the process it runs until it completes.
I guess the problem is that what do you want to do if an INSERT statement
takes longer than expected because of maybe resource contention? What will
happen to your transactions? Roll them back? What about importing a file
and the file host is slow today. What do you want to do? Kill the load?

Even if you had a table which was logging job execution times and you could
query it to find out how long things were taking. A lot of what I mentioned
above still applies. If you stop the job there will still be things that
need to be rolled back or run to completion withinn the package before the
stopping of the job can happen.




Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi,

I have a number of DTS's that are executed each morning via a
Scheduled Job.

Sometimes I find that the Job has got "stuck" on a Step (DTS) and does
not "stop" until I manually stop the job myself through EM.

Question is: How can I give my DTS's a Maximum Expected Run Time?

e.g. Job Step 2 - which runs DTS "MySecondDTS" should only take 2
minutes to run, therefore I'd like to set a Max run time of 10
minutes.

Thanks for helping.

Jon Derbyshire




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.