سؤال

I have a job set up in SQL Server called "Retreat Update". It is a job that the SQL Server Agent runs every 45 minutes. Is there a SELECT statement or a system stored procedure that I can execute to determine if the job is currently running or if its idle?

هل كانت مفيدة؟

المحلول

I think you can use sp_help_job to see the status of the jobs on the server. You can see more information on it here.

From my search on SQL Help, try...

EXEC dbo.sp_help_job @Job_name = 'Retreat Update'

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top