PID Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The PID property retrieves the Microsoft SQL Server process identification.

Syntax

object.PID

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetPID(LPLONG plPID);

Remarks

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.

Applies To: