Share via


NonQueryResult Class

Represents the results from a call to the ExecuteNonQuery method.

Inheritance Hierarchy

System.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)

Syntax

'Declaration
Public NotInheritable Class NonQueryResult _
    Inherits ResultInfo
'Usage
Dim instance As NonQueryResult
public sealed class NonQueryResult : ResultInfo
public ref class NonQueryResult sealed : public ResultInfo
[<SealedAttribute>]
type NonQueryResult =  
    class
        inherit ResultInfo
    end
public final class NonQueryResult extends ResultInfo

The NonQueryResult type exposes the following members.

Properties

  Name Description
Public property BatchStartingLine Gets the starting line of the batch in the editor. (Inherited from ResultInfo.)
Public property BatchText Gets the text of the Transact-SQL batch that was executed. (Inherited from ResultInfo.)
Public property CompletedSuccessfully Gets True if execution was successful, False if there was an exception. (Inherited from ResultInfo.)
Public property ConnectionInfo Gets the connection info of the connection producing the result. (Inherited from ResultInfo.)
Public property Exception Gets or sets the exception that was thrown while executing the Transact-SQL. (Inherited from ResultInfo.)
Public property ExecutionTime Gets or sets the amount of client wall-time it took to get the result back from the server. (Inherited from ResultInfo.)
Public property LoginName Gets the name of the login executing the batch. (Inherited from ResultInfo.)
Public property RowsAffected Gets or sets the number of rows that are affected by the ExecuteNonQuery method.
Public property ServerDisplayName Gets the display name of the server where the batch was executed. (Inherited from ResultInfo.)
Public property ServerName Gets the name of the server where the batch was executed. (Inherited from ResultInfo.)
Public property StartTime Gets or sets the time when the batch was submitted. (Inherited from ResultInfo.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Gets the string representation of the current object. (Overrides Object.ToString().)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.