Applies ToSQL Server 2014 Developer - duplicate (do not use) SQL Server 2014 Enterprise - duplicate (do not use) SQL Server 2014 Enterprise Core - duplicate (do not use) SQL Server 2014 Express - duplicate (do not use) SQL Server 2014 Standard - duplicate (do not use) SQL Server 2014 Web - duplicate (do not use) 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 2012 Developer SQL Server 2012 Enterprise SQL Server 2012 Enterprise Core SQL Server 2012 Standard SQL Server 2012 Web SQL Server 2012 Express

Summary

In Microsoft SQL Server, the new TraceFlags element is added to the QueryPlan element in the showplan XML. This element lists all trace flags that are enabled at the instance or session level when the query plan is compiled, and for actual execution showplans, a specific query is executed. There can be up to two instances of TraceFlags element, one for compile time (with the IsCompileTime attribute equaling to one), and one for execution time (If a trace flag is enabled during both compilation and execution, it will be presented in both lists). Each element can have a list of one or more TraceFlag elements that have two attributes. The Value attribute identifies the trace flag number, and the Scope attribute can be "Global" or "Session" depending on how the trace flag is enabled (If a trace flag is enabled at the query level by using OPTION QUERYTRACEON, it will appear as in the "Session" scope in showplan). If no trace flag is enabled during compile or execution time, corresponding elements won't be included. Note The showplan XML will list up to 100 trace flags that are enabled.

Resolution

Service pack information for SQL Server

This update is fixed in the following service packs for SQL Server:

SQL Server 2016 Service Pack 1

Service Pack 3 for SQL Server 2014

Service Pack 4 for SQL Server 2012

Service packs are cumulative. Each new service pack contains all the fixes that are in previous service packs, together with any new fixes. Our recommendation is to apply the latest service pack and the latest cumulative update for that service pack. You don't have to install a previous service pack before you install the latest service pack. Use Table 1 in the following article for finding more information about the latest service pack and latest cumulative update.How to determine the version, edition and update level of SQL Server and its components

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.