NativeSqlConnectionException.SqlState 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示錯誤的 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 陳述式時回傳的錯誤碼。