dbTalk Databases Forums  

DTS running way over normal time

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


Discuss DTS running way over normal time in the microsoft.public.sqlserver.dts forum.



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

Default DTS running way over normal time - 10-01-2008 , 11:17 AM








I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,

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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM








"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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

Default RE: DTS running way over normal time - 10-01-2008 , 06:35 PM





"Jim Abel" wrote:

Quote:

I'm looking for suggestions on how to handle a situation that occurs
randomly.
I have a Job that runs a dts package every 2 hours that takes 3 minutes to
complete. Once in a while it gets stuck saying that it is running in the
status column of the Jobs node. Once observed a simple matter of stopping
and then starting the job gets it back on track.

does anyone one have some suggestions on how I could programatically stop
the job once it has been running over 4 hours?


I have not been able to determine why it gets stuck running because it is so
infrequent but seems to happen when the results are mort needed by the users.
thanks in advance,
Take a look at sysjobactivity in msdb. That will give you the start time
with a null completion time for running jobs. If you poll that you should see
if the job has gone over your limit then you can kill it using sp_stop_job.


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.