SqlError Properties

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubpropertyClass

Gets the severity level of the error returned from SQL Server.

System_CAPS_pubpropertyLineNumber

Gets the line number within the Transact-SQL command batch or stored procedure that contains the error.

System_CAPS_pubpropertyMessage

Gets the text describing the error.

System_CAPS_pubpropertyNumber

Gets a number that identifies the type of error.

System_CAPS_pubpropertyProcedure

Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.

System_CAPS_pubpropertyServer

Gets the name of the instance of SQL Server that generated the error.

System_CAPS_pubpropertySource

Gets the name of the provider that generated the error.

System_CAPS_pubpropertyState

Some error messages can be raised at multiple points in the code for the Database Engine. For example, an 1105 error can be raised for several different conditions. Each specific condition that raises an error assigns a unique state code.

Return to top
Show: