ServerMessageEventArgs ServerMessageEventArgs ServerMessageEventArgs Class


Provides information about a server message event.

public ref class ServerMessageEventArgs : EventArgs, Microsoft::SqlServer::Management::MultiServerConnection::IResultInfo
public class ServerMessageEventArgs : EventArgs, Microsoft.SqlServer.Management.MultiServerConnection.IResultInfo
Public Class ServerMessageEventArgs
Inherits EventArgs
Implements IResultInfo


ServerMessageEventArgs(SqlErrorCollection, IResultInfo) ServerMessageEventArgs(SqlErrorCollection, IResultInfo) ServerMessageEventArgs(SqlErrorCollection, IResultInfo)

Initializes a new instance of the ServerMessageEventArgs class.


BatchStartingLine BatchStartingLine BatchStartingLine

Gets the starting line of the batch in the editor.

BatchText BatchText BatchText

Gets the text of the Transact-SQL batch that was executed.

CompletedSuccessfully CompletedSuccessfully CompletedSuccessfully

Gets true if execution was successful, false if there was an exception.

ConnectionInfo ConnectionInfo ConnectionInfo

Gets the connection info of the connection producing the result.

Errors Errors Errors

Gets the messages that were returned by the server.

Exception Exception Exception

Gets the exception that was thrown while executing the Transact-SQL batch.

ExecutionTime ExecutionTime ExecutionTime

Gets the amount of client wall-time it took to get the result back from the server.

LoginName LoginName LoginName

Gets the name of the login executing the batch.

ServerDisplayName ServerDisplayName ServerDisplayName

Gets the display name of the server where the batch was executed.

ServerName ServerName ServerName

Gets the name of the server where the batch was executed.

StartTime StartTime StartTime

Gets the time when the batch was submitted.

Applies to