后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The ConnectionID is an identifier that is generated by SQL Distributed Management Objects (SQL-DMO) for a connected SQLServer object.
语法
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);
备注
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.