kill

Description

Kills a process.

Syntax

kill spid

Parameters

spid

is the identification number of the process you want to kill. spid must be a constant; it cannot be passed as a parameter to a stored procedure or used as a local variable. Use sp_who to see a list of processes and other information.

Examples

Example 1

kill 1378

Usage

Standards

SQL92 – Compliance level: Transact-SQL extension.

Permissions

kill permission defaults to System Administrators and is not transferable.

See also

Commands shutdown

System procedures sp_lock, sp_who