This documentation is archived and is not being maintained.
Collects information relevant to a warning or error returned by SQL Server.
The SqlError type exposes the following members.
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Gets the complete text of the error message. (Overrides Object.ToString().)|
|Class||Gets the severity level of the error returned from SQL Server.|
|LineNumber||Gets the line number within the Transact-SQL command batch or stored procedure that contains the error.|
|Message||Gets the text describing the error.|
|Number||Gets a number that identifies the type of error.|
|Procedure||Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.|
|Server||Gets the name of the instance of SQL Server that generated the error.|
|Source||Gets the name of the provider that generated the error.|
|State||Gets a numeric error code from SQL Server that represents an error, warning or "no data found" message.|