NativeSqlConnectionException.SqlState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the Microsoft SQL Server SQL state for the error.
public:
property System::String ^ SqlState { System::String ^ get(); };
public string SqlState { get; }
member this.SqlState : string
Public ReadOnly Property SqlState As String
Property Value
A five-character String value that follows the ANSI SQL standard and indicates the error code
Remarks
The SqlState property is used to get the error code that the provider returns when an error occurs during the processing of an SQL statement.