The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
KILL STATS JOB (Transact-SQL)
Is the job_id field returned by the sys.dm_exec_background_job_queue dynamic management view for the job.
The job_id is unrelated to session_id or unit of work used in other forms of the KILL statement.
User must have VIEW SERVER STATE permission to access information from the sys.dm_exec_background_job_queue dynamic management view.
KILL STATS JOB permissions default to the members of the sysadmin and processadmin fixed database roles and are not transferable.
The following example shows how to terminate the statistics update associated with a job where the job_id = 53.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback