ConnectionID Property

SQL-DMO

SQL-DMO

ConnectionID Property

The ConnectionID is a SQL-DMO generated identifier for a connected SQLServer object.

Applies To
SQLServer Object
Syntax

object.ConnectionID

object

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.