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 實例中啟用資料庫的 [查詢存放區] 功能。 當您使用 join 運算查詢查詢方案時,查詢結果中的 query_plan資料行包含不尋常的字元。例如,您可以將 sys.query_store_plan加入另一個視圖,如下列查詢所示:

選取 qt.query_sql_text、q.query_id、qt.query_text_id、p.plan_id、p.query_planFROM sys.query_store_query_text 做為 qt 內聯接 sys.query_store_query 為 qt.query_text_id = q.query_text_id 內部聯接 sys.query_store_plan 為 p,q.query_id = p.query_id 在這種情況下,查詢結果中的query_plan資料行包含如下所示的字元:

传/傳

解決方案

此問題的修正套裝程式含在 SQL Server 的下列累積更新中:

SQL Server 2016 的累積更新2

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

SQL Server 2016 的最新累計更新

因應措施

若要解決此問題,請不要在您嘗試檢索query_plan時,將sys.query_store_plan加入另一個視圖。 相反地,若要針對特定plan_id取得query_plan ,請針對該plan_id執行不同的查詢,如下所示:

選取 [plan_id],query_planfrom sys.query_store_planwhere plan_id = plan_id

狀態

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!

×