KillProcess Method

SQLServer Object

Description

Terminates a SQL Server process.

Visual Basic

SQLServer.KillProcess ( [ProcessID :=] lProcess )

C++

HRESULT pSQLServer->KillProcess ( long lProcess );

Elements

Element Type Description

lProcess Long SQL Server process ID

Remarks

A SQLServer object cannot use KillProcess to terminate its own connection.

Reference

KILL