Export (0) Print
Expand All

NonQueryResult Class

Represents the results from a call to the ExecuteNonQuery method.

Object
  Microsoft.SqlServer.Management.MultiServerConnection.ResultInfo
    Microsoft.SqlServer.Management.MultiServerConnection.NonQueryResult

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

public sealed class NonQueryResult : ResultInfo

The NonQueryResult type exposes the following members.

  NameDescription
Public propertyBatchStartingLineGets the starting line of the batch in the editor. (Inherited from ResultInfo.)
Public propertyBatchTextGets the text of the Transact-SQL batch that was executed. (Inherited from ResultInfo.)
Public propertyCompletedSuccessfullyGets True if execution was successful, False if there was an exception. (Inherited from ResultInfo.)
Public propertyConnectionInfoGets the connection info of the connection producing the result. (Inherited from ResultInfo.)
Public propertyExceptionGets or sets the exception that was thrown while executing the Transact-SQL. (Inherited from ResultInfo.)
Public propertyExecutionTimeGets or sets the amount of client wall-time it took to get the result back from the server. (Inherited from ResultInfo.)
Public propertyLoginNameGets the name of the login executing the batch. (Inherited from ResultInfo.)
Public propertyRowsAffectedGets or sets the number of rows that are affected by the ExecuteNonQuery method.
Public propertyServerDisplayNameGets the display name of the server where the batch was executed. (Inherited from ResultInfo.)
Public propertyServerNameGets the name of the server where the batch was executed. (Inherited from ResultInfo.)
Public propertyStartTimeGets or sets the time when the batch was submitted. (Inherited from ResultInfo.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToStringGets the string representation of the current object. (Overrides ObjectToString.)
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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft