Operational Defect Database

BugZero found this defect 1308 days ago.

Microsoft SQL Server | 12200692

KB4458593 - Update adds lightweight query profiling hint in SQL Server 2016 and 2017 - Microsoft Support

Last update date:

9/22/2022

Affected products:

SQL Server 2016 Developer - duplicate (do not use)

SQL Server 2016 Enterprise - duplicate (do not use)

SQL Server 2016 Enterprise Core - duplicate (do not use)

SQL Server 2016 Standard - duplicate (do not use)

SQL Server 2017 Developer

SQL Server 2017 Enterprise

SQL Server 2017 Enterprise Core

Affected releases:

build lower than 14.0.3038.14

Fixed releases:

14.0.3038.14

Description:

Summary

This update adds a new USE HINT query hint argument, QUERY_PLAN_PROFILE. This argument enables lightweight profiling for the query. When a query that contains this new hint finishes, a new Extended Event, query_plan_profile, is fired. This extended event exposes execution statistics and actual execution plan XML similar to the query_post_execution_showplan extended event but only for queries that contains the new hint. Notes When lightweight profiling is enabled for a query, this makes information available for you to analyze runtime performance statistics for the query. Also, you can use features such as sys.dm_exec_query_profiles, sys.dm_exec_query_statistics_xml, and Live Query Statistics. If you enable collecting the query_post_execution_showplan extended event, this will add standard profiling infrastructure to every query that is running on the server and therefore may affect overall server performance. If you enable the collecting query_thread_profile extended event to use lightweight profiling infrastructure instead, this will result in much less performance overhead but will still affect overall server performance. If you enable the query_plan_profile extended event, this will only enable the lightweight profiling infrastructure for a query that executed with the QUERY_PLAN_PROFILE and therefore will not affect other workloads on the server. Use this hint to profile a specific query without affecting other parts of the server workload. For more information about standard and lightweight query profiling, see the sys.dm_exec_query_statistics_xml topic on the Microsoft Learn website.

More information

This problem is fixed in the following updates for SQL Server: Cumulative Update 11 for SQL Server 2017 Cumulative Update 3 for SQL Server 2016 Service Pack 2.

About SQL Server builds

Each new build for SQL Server 2016 contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for your version of SQL Server: Latest cumulative update for SQL Server 2017 the latest build for SQL Server 2016.

References

Learn about the terminology Microsoft uses to describe software updates.

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...