Freigeben über


ConnectionID Property

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The ConnectionID is an identifier that is generated by SQL Distributed Management Objects (SQL-DMO) for a connected SQLServer object.

Syntax

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

Hinweise

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