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 語句期間發生錯誤時,提供者所傳回的錯誤碼。