Question : stop a long running job

Is there any way to configure a SQL Server job to stop after running for X number of Hours ? I know I can code it, if the job step contains my own code. But, I am running a job that contains third party VB script and it is sometimes running indefenitely. I want a way to be able to identify this and stop the job.

Basically I'm looking for an option similar to the one in NT Scheduler as 'Stop the task if it runs for: 72 Hours'.

Answer : stop a long running job

add as first step of you sql job - start (use sp_start_job) another job  - time running control
that will
 use:
WAITFOR  and exec sp_stop_job 'yourmainjobname'
see more:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_wa-wz_8ipg.asp
Random Solutions  
 
programming4us programming4us