Partager via


ConnectionID 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 ConnectionID is an identifier that is generated by SQL Distributed Management Objects (SQL-DMO) for a connected SQLServer object.

Syntaxe

object
.ConnectionID

Parts

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

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetConnectionID(LPLONG plConnectionID);

Notes

The value has meaning only after the SQLServer object has successfully established a connection to a server running an instance of Microsoft SQL Server. It is unique for each connection.

Applies To:

SQLServer Object