語言

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

屬性值

一個五字元 String 的值,遵循 ANSI SQL 標準,表示錯誤代碼

備註

此 SqlState 屬性用於取得提供者在處理 SQL 陳述式時回傳的錯誤碼。

適用於