dbTalk Databases Forums  

SQL 2000 Agent job to stop after X minutes

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


Discuss SQL 2000 Agent job to stop after X minutes in the microsoft.public.sqlserver.dts forum.



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

Default SQL 2000 Agent job to stop after X minutes - 02-07-2008 , 09:08 AM






I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #2  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM






That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

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

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #4  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #5  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #6  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #7  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #8  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

Reply With Quote
  #9  
Old   
lonnye
 
Posts: n/a

Default RE: SQL 2000 Agent job to stop after X minutes - 03-13-2008 , 10:26 PM



That doesn't ring a bell to me but I am always learning....
Let's call the job you want to monitor - job A
What if you created a new job (B) that would start X minutes after A started
and query the system tables (or sy sviews if you are familiar with them) and
send an sp_stop_job if A is still running?

If you do this, just be sure to make a note in Job A's description noting
the dependency and if you change the schedule of A, change the schedule of B.

--
~lb


"Rich" wrote:

Quote:
I swear there is a way in SQL 2000 to have a SQL Server Agent job (that runs
a DTS) to stop running if it's been running for X minutes. I can't find it
though. I thought it was just a checkbox and a field for a number somewhere.
any ideas?

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.