title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | monikerRange | |
---|---|---|---|---|---|---|---|---|---|---|
Broker:Connection Event Class |
Broker:Connection Event Class |
WilliamDAssafMSFT |
wiassaf |
05/24/2019 |
sql |
supportability |
reference |
|
>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current |
[!INCLUDE SQL Server SQL MI]
[!INCLUDEssNoVersion] generates a Broker:Connection event to report the status of a transport connection managed by Service Broker.
Data column | Type | Description | Column number | Filterable |
---|---|---|---|---|
ApplicationName | nvarchar | The name of the client application that created the connection to an instance of [!INCLUDEssNoVersion]. This column is populated with the values passed by the application rather than the displayed name of the program. | 10 | Yes |
ClientProcessID | int | The ID assigned by the host computer to the process where the client application is running. This data column is populated if the client process ID is provided by the client. | 9 | Yes |
DatabaseID | int | The ID of the database specified by the USE database statement, or the ID of the default database if no USE databasestatement has been issued for a given instance. [!INCLUDEssSqlProfiler] displays the name of the database if the ServerName data column is captured in the trace and the server is available. Determine the value for a database by using the DB_ID function. | 3 | Yes |
Error | int | The message ID number in sys.messages for the text in the event. If this event reports an error, this is the [!INCLUDEssNoVersion] error number. | 31 | No |
EventClass | int | The type of event class captured. Always 138 for Broker:Connection. | 27 | No |
EventSequence | int | Sequence number for this event. | 51 | No |
EventSubClass | nvarchar | The connection state of this connection. For this event, the subclass is one the following values. Connecting. [!INCLUDEssNoVersion] is initiating a transport connection. Connected. [!INCLUDEssNoVersion] has established a transport connection. Connect Failed. [!INCLUDEssNoVersion] failed to establish a transport connection. Closing. [!INCLUDEssNoVersion] is closing the transport connection. Closed. [!INCLUDEssNoVersion] has closed the transport connection. Accept. [!INCLUDEssNoVersion] has accepted a transport connection from another instance. Send IO Error. [!INCLUDEssNoVersion] encountered a transport error while sending a message. Receive IO Error. [!INCLUDEssNoVersion] encountered a transport error while receiving a message. |
21 | Yes |
GUID | uniqueidentifier | The endpoint ID of this connection. | 54 | No |
HostName | nvarchar | The name of the computer on which the client is running. This data column is populated if the host name is provided by the client. To determine the host name, use the HOST_NAME function. | 8 | Yes |
IntegerData | int | The number of times this connection has been closed. | 25 | Yes |
IsSystem | int | Indicates whether the event occurred on a system process or a user process. 0 = user 1 = system |
60 | No |
LoginSid | image | The security identification number (SID) of the logged-in user. Each SID is unique for each login in the server. | 41 | Yes |
NTDomainName | nvarchar | The Windows domain to which the user belongs. | 7 | Yes |
NTUserName | nvarchar | The name of the user that owns the connection that generated this event. | 6 | Yes |
ObjectName | nvarchar | The conversation handle of the dialog. | 34 | No |
ServerName | nvarchar | The name of the instance of [!INCLUDEssNoVersion] being traced. | 26 | No |
SPID | int | The session ID assigned by [!INCLUDEssNoVersion] to the process associated with the client. | 12 | Yes |
StartTime | datetime | The time at which the event started, when available. | 14 | Yes |
TextData | ntext | The text of the error message related to the event. For events that do not report an error, this field is empty. The error message may either be a [!INCLUDEssNoVersion] error message or a Windows error message. | 1 | Yes |
TransactionID | bigint | The system-assigned ID of the transaction. | 4 | No |