Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServerMessageEventArgs Class

Provides information about a server message event.

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.MultiServerConnection.ServerMessageEventArgs

Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)
public class ServerMessageEventArgs : EventArgs, 
	IResultInfo

The ServerMessageEventArgs type exposes the following members.

  NameDescription
Public methodServerMessageEventArgsInitializes a new instance of the ServerMessageEventArgs class.
Top
  NameDescription
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.
Top
  NameDescription
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.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.