1

Possible Duplicate:
SQL Server Agent Job Timeout

Can a scheduled job on SQL Server 2005 be scheduled to be stopped if it runs more than a certain number of hours? Just like the scheduled task in windows?

Community
  • 1
  • 1
hyperkittie
  • 641
  • 6
  • 16

1 Answers1

0

There is sp_stop_job procedure that stops the jobs. see http://msdn.microsoft.com/en-us/library/ms182793 for details.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Alex_L
  • 2,658
  • 1
  • 15
  • 13