Listing All Jobs Running in SQL Server
Hello everyone. In this article, I will provide information about listing all running jobs in SQL Server.
In certain situations, you might want to list all the running jobs in SQL Server.
You can easily perform this operation with the help of the code below:
SELECT database_name, notify_level_email, name, enabled, description, step_name, command FROM msdb.dbo.sysjobs job INNER JOIN msdb.dbo.sysjobsteps steps ON job.job_id = steps.job_id WHERE job.enabled = 1;
When you execute the above code, you will see a result similar to the following:
As you can see, all jobs have been listed.
Wishing everyone success and ease in their professional and personal lives.