Share via


ResultInfo Class

Represents the results from executing a Transact-SQL batch.

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 Class ResultInfo _
    Implements IResultInfo
'Usage
Dim instance As ResultInfo
public class ResultInfo : IResultInfo
public ref class ResultInfo : IResultInfo
type ResultInfo =  
    class
        interface IResultInfo
    end
public class ResultInfo implements IResultInfo

The ResultInfo type exposes the following members.

Constructors

  Name Description
Public method ResultInfo(IResultInfo) Initializes a new instance of the ResultInfo class that is a copy of the specified ResultInfo object.
Public method ResultInfo(MultiServerSqlConnectionInfo, String, Int32) Initializes a new instance of the ResultInfo class by using the specified connection information, text, and starting line number.

Top

Properties

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

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 (Inherited from Object.)

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.