Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

假設您的資料表在 SQL Server 2017 和 Microsoft SQL Server 2016 和2014中都有一個整數欄,且資料行具有下列功能:

  • 此欄會宣告為 NOT Null。

  • 資料行中定義了 CHECK 限制,且限制只允許資料行的值為1。

  • 此欄參與的分區配置尚未定義零個分區(這類配置可能是針對尚未設定的未來分區分割所定義)。

在這種情況下,當您嘗試查詢資料表時,會發生存取違規。

解決方案

此問題已在 SQL Server 的下列累積更新中修正:

       SQL Server 2016 SP1 的累積更新9

       SQL Server 2016 SP2 累積更新1

       SQL Server 2017 累積更新5

       SQL Server 2014 SP2 累計更新12

每個新的 SQL Server 累計更新都包含先前組建中的所有修復程式和安全性修正程式。 查看 SQL Server 的最新累計更新:

SQL Server 2016 的最新累計更新

SQL Server 2017 的最新累計更新

SQL Server 2014 的最新累計更新

狀態

Microsoft 已確認<適用於>一節中所列的 Microsoft 產品確實有上述問題。

參考

瞭解 Microsoft 用於描述軟體更新的 詞彙

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×