The PID property retrieves the Microsoft® SQL Server™ 2000 process identification.
object.PID
object
Expression that evaluates to an object in the Applies To list
Long
Read-only
HRESULT GetPID(LPLONG plPID);
An application uses the PID property to determine the process identification of a specific instance of SQL Server.
Note If an application calls PID on an instance of SQL Server version 7.0, zero is returned.