Export (0) Print
Expand All

ServerMessageEventArgs Class

Provides information about a server message event.


Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)

public class ServerMessageEventArgs : EventArgs, 

The ServerMessageEventArgs type exposes the following members.

Public methodServerMessageEventArgsInitializes a new instance of the ServerMessageEventArgs class.

Public propertyBatchStartingLineGets the starting line of the batch in the editor.
Public propertyBatchTextGets the text of the Transact-SQL batch that was executed.
Public propertyCompletedSuccessfullyGets true if execution was successful, false if there was an exception.
Public propertyConnectionInfoGets the connection info of the connection producing the result.
Public propertyErrorsGets the messages that were returned by the server.
Public propertyExceptionGets the exception that was thrown while executing the Transact-SQL batch.
Public propertyExecutionTimeGets the amount of client wall-time it took to get the result back from the server.
Public propertyLoginNameGets the name of the login executing the batch.
Public propertyServerDisplayNameGets the display name of the server where the batch was executed.
Public propertyServerNameGets the name of the server where the batch was executed.
Public propertyStartTimeGets the time when the batch was submitted.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft