Sql-server – SQL Server job timeout

sql server

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:

Questions

  1. How does Agent time-out work?
  2. Is there any other way (preferably by configuration) to setup the single step timeout?
  3. Is there any other way (preferably by configuration) to setup the whole job timeout?

Best Answer

(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.