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 和 2019 中啟用自動查詢調整。 執行許多同時儲存的程式時,您可能會在下列情況下遇到編譯封鎖案例:

  1. 執行儲存的程式。

  2. 使用查詢資料存放 (QDS) 強制執行計畫。

  3. 在sp_recompile程式上執行計畫,以強制從程式快處理移除計畫。

  4. 在許多不同的會話中同時執行儲存的程式。

原因

使用查詢資料存放區強制執行計畫,並移除程式緩存後,計畫將不再是緩存,且同時執行會導致編譯封鎖。

狀態

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

解決方案

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

關於 SQL Server 的累積更新:

SQL Server 的每個新累積更新都包含所有 Hotfix,以及上一個累積更新中包含的所有安全性修正。 查看 SQL Server 的最新累積更新:

參考

了解 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!

×