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

Remarks

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: