NativeSqlConnectionException.SqlState 속성

정의

오류에 대한 Microsoft SQL Server SQL 상태를 나타냅니다.

public:
 property System::String ^ SqlState { System::String ^ get(); };
public string SqlState { get; }
member this.SqlState : string
Public ReadOnly Property SqlState As String

속성 값

ANSI SQL 표준을 따라 오류 코드를 나타내는 5자로 이루어진 String 값입니다.

설명

SqlState 속성은 SQL 문을 처리하는 동안 오류가 발생할 때 공급자가 반환하는 오류 코드를 가져오는 데 사용됩니다.

적용 대상