How can you find the SQL Server jobs that start simultaneously?

Category: Performance
Item: SQL Agent jobs starting simultaneously.

Why should you care about them?

Multiple SQL Server Agent jobs are configured to start simultaneously, which will not perform as fast as if jobs would not overlap.

Your SQL Server may be under heavy load for short bursts of time.

How can I find the SQL Server jobs that start simultaneously?

You can use the script below to list all Agent SQL Server jobs starting at precisely at the same time.

SELECT j.name AS JobName,
 j.description AS JobDescription,
 a.start_execution_date AS JobStartExecutionDate
FROM msdb.dbo.sysjobs j
INNER JOIN msdb.dbo.sysjobactivity a ON j.job_id = a.job_id
WHERE j.enabled = 1 AND a.start_execution_date IN
(SELECT start_execution_date
FROM msdb.dbo.sysjobactivity
GROUP BY start_execution_date HAVING COUNT(*) > 1)
Figure 1 -SQL Server Agent Jobs starting Simultaneously.

How to fix them?

  1. Spread job execution tweaking the job schedules.

More information

Microsoft – dbo.sysjobactivity.

 

Share this post

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on print
Share on email

Leave a Comment

Your email address will not be published. Required fields are marked *

4.8/5

42

TESTIMONIALS

FREE Scripts to Instantly
Improve SQL Server Performance

3 FREE Scripts to Instantly
Improve SQL Server Performance

Learn how to increase Performance of SQL Server INSTANTLY with 3 free scripts.