HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

SQL Server job timeout

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
sqltimeoutjobserver

Problem

So, it seems that it is not possible to set the timeout for each single step in a SQL Server job (article from StackExchange).

MSDN points out that you can of course set the Agent timeout:

  • Sql Server Agent properties.



  • Set Job execution shutdown.



Questions

  • How does Agent time-out work?



  • Is there any other way (preferably by configuration) to setup the single step timeout?



  • Is there any other way (preferably by configuration) to setup the whole job timeout?

Solution

(1) is referring to the service itself. If I go stop the SQL Server Agent service this value specifies how long it will wait for any active job to complete before forcible stopping it (the service) so it can shutdown.

With regards to (2) and (3), you would have to setup some monitoring script/job that tracks that information and performs an action based on your criteria.

Context

StackExchange Database Administrators Q#21688, answer score: 4

Revisions (0)

No revisions yet.