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 2016 SP2、sql server 2017 或2019使用累積更新8。 當您嘗試收集您要執行之查詢的資訊時(例如中繼資料(類型) 查詢傳回的欄數)、參數類型或估計的執行方案,您可能會發現查詢包含 PIVOT 或 UNPIVOT 時,發生存取違例(AV) 運算子. 收集這類資訊的範例,包括 不限於下列專案:

  • 呼叫 sys.sp_describe_first_result_set 以取得查詢傳回的欄類型。

  • 呼叫 sys.sp_describe_undeclared_parameters 以取得參數類型。

  • 呼叫 設定 顯示計畫(或使用 Microsoft SQL Server Management Studio)來取得估計的執行方案。

此外, 會在本機實例上產生類似下列的 dump 檔案:

Msg 596、Level 21、State 1、Line LineNumber

無法繼續執行,因為會話處於 [kill] 狀態。

Msg 0、Level 20、State 0、Line LineNumber

目前的命令發生嚴重錯誤。 結果(如果有的話)應該捨棄。

狀態

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

解決方案

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

關於 SQL Server 的累積更新:

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 查看 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!

×