KILL
terminates a session
What changes
- Input
- session id or UOW
- Output or change
- ends a session (rolls back its work)
Syntax at a glance
KILL { session_id [ WITH STATUSONLY ] | UOW [ WITH STATUSONLY | COMMIT | ROLLBACK ] } [ ; ]
Work example
An authorized operator has confirmed a session is blocking required work and needs a reviewed termination plan.
Identify the session, owner, active transaction, and rollback cost first. Use the approved incident runbook.
Check your work KILL. The target session is the one approved for termination and rollback completes before impact is declared over.
Open Microsoft Learn for full syntax, permissions, and details for your version.