dbTalk Databases Forums  

Setting up Job Thesholds in SQL Server 2000

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


Discuss Setting up Job Thesholds in SQL Server 2000 in the microsoft.public.sqlserver.dts forum.



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

Default Setting up Job Thesholds in SQL Server 2000 - 07-22-2004 , 09:13 AM






Hi,
I have a DTS package that runs at different times of the day. I have
set this up as different jobs. The function of these jobs is to gather
data from a server in our corporate domain and write it out as a text
file for my other applications to process. Sometimes, the host server
has some issues like open cursors etc., which leave my jobs just
hanging and not fail out. I know that these jobs do not take more than
10 mins to complete. Based on this fact, is there a way to set
thresholds on the duration of the jobs? If I could set a threshold and
make it fail out then, I would be able to get notifications about it.
Any help in this regard would be appreciated.
Thanks,
-Srinidhi

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

Default Re: Setting up Job Thesholds in SQL Server 2000 - 07-22-2004 , 09:29 AM






What about

at the start of your packages (jobs that fire packages) you write a row to a
log table. You have a watcher job that looks at this table every 1 minute
to check for open jobs and the open duration. At the end of each job (DTS
package) you write the completed status to the relevant job. If your
watcher job finds a job still running after n minutes then it can take
action from there.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Srinidhi" <srinidhi_3 (AT) yahoo (DOT) com> wrote

Quote:
Hi,
I have a DTS package that runs at different times of the day. I have
set this up as different jobs. The function of these jobs is to gather
data from a server in our corporate domain and write it out as a text
file for my other applications to process. Sometimes, the host server
has some issues like open cursors etc., which leave my jobs just
hanging and not fail out. I know that these jobs do not take more than
10 mins to complete. Based on this fact, is there a way to set
thresholds on the duration of the jobs? If I could set a threshold and
make it fail out then, I would be able to get notifications about it.
Any help in this regard would be appreciated.
Thanks,
-Srinidhi



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.