SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

Background Job Queue: List Active Jobs and Kill a Stats Job

The background job queue holds work that SQL Server runs outside your queries, such as asynchronous statistics updates. This post lists the active jobs, reads the queue counters, catches a real statistics job in a demo and kills it with KILL STATS JOB. It also corrects a common mix-up: the command takes the job ID, not the session ID.

Continue Reading