NativeSqlConnectionException.SqlState Property

Definition

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.

Applies to