February 25, 2008 at 2:05 pm
I'm having a bit of a problem determining if a job in question is currently running due to the job being one step and taking 4+ hours to run. I created a wrapper process to monitor the job, but using sysjobhistory, the entry is not made until the step has completed.
I came across this article: http://www.sqlservercentral.com/articles/Administering/howtofindthatjobisrunning/2071/ and I'm curious to as if anyone is aware of any easier way to accomplish this?
Thanks
February 26, 2008 at 12:33 pm
How about
sp_who2 active
SELECT * FROM master..sysprocesses
February 26, 2008 at 12:34 pm
Forgot about this topic ...
I found what I was looking for in xp_sqlagent_enum_jobs
Thanks though
July 25, 2008 at 7:12 am
CAN YOU TELL ME
HOW TO USE: xp_sqlagent_enum_jobs
WHAT ARE THE RESULTS FETCHED BY IT?
THANKS,
NIK
July 27, 2008 at 8:24 pm
You may try the command below,
sp_help_job
For more information about XP_SQLAGENT_ENUM_JOBS, the following link may help.
http://www.siccolo.com/Articles/SQLScripts/how-to-create-sql-to-sql-job-execution-status.html
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply