Partager via


PID Property

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

The PID property retrieves the Microsoft SQL Server process identification.

Syntaxe

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);

Notes

An application uses the PID property to determine the process identification of a specific instance of SQL Server.

[!REMARQUE]

If an application calls PID on an instance of SQL Server version 7.0, zero is returned.

Applies To: