This documentation is archived and is not being maintained.

SqlError Members

Collects information relevant to a warning or error returned by SQL Server.

The SqlError type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework ToString Gets the complete text of the error message. (Overrides Object.ToString().)
Top

  NameDescription
Public property Supported by the .NET Compact Framework Class Gets the severity level of the error returned from SQL Server.
Public property Supported by the .NET Compact Framework LineNumber Gets the line number within the Transact-SQL command batch or stored procedure that contains the error.
Public property Supported by the .NET Compact Framework Message Gets the text describing the error.
Public property Supported by the .NET Compact Framework Number Gets a number that identifies the type of error.
Public property Supported by the .NET Compact Framework Procedure Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.
Public property Supported by the .NET Compact Framework Server Gets the name of the instance of SQL Server that generated the error.
Public property Supported by the .NET Compact Framework Source Gets the name of the provider that generated the error.
Public property Supported by the .NET Compact Framework State Gets a numeric error code from SQL Server that represents an error, warning or "no data found" message.
Top
Show: