Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically tell whether a job is executing

Status
Not open for further replies.

JJayUK

Programmer
Dec 18, 2001
57
GB
Hi,

Does anyone know of an easy way to tell if a job is executing using T-SQL?

I've had a hunt around the sysjobs and sysjobhistory tables but can't really find anything.

I've also tried
sp_help_job @execution_status = 1 but this will return *all* jobs currently running. I need to know about a specific one.

Regards,
JJayUK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top