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