Skip to content

Commit

Permalink
Updated info for trace flag 8666
Browse files Browse the repository at this point in the history
  • Loading branch information
ktaranov committed Feb 23, 2017
1 parent d1eae7b commit 30986a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SQL Server Trace Flag.md
Original file line number Diff line number Diff line change
Expand Up @@ -2681,11 +2681,15 @@ Link: [What You Need to Know about the Batch Mode Window Aggregate Operator in S


**Trace Flag: 8666**<br />
Function: CQScanPartitionSortNew is one of only two sort classes that sets the Soft Sort property exposed when Sort operator execution plan properties are generated with undocumented trace flag 8666 enabled<br />
**Undocumented trace flag**<br />
Function: Included in execution plans are the names of the stats it used to come up with the plan.
Using a bit o' XML magic and over time, it allows you to clearly identify which stats are actually in use so that you can delete unused stats.
CQScanPartitionSortNew is one of only two sort classes that sets the Soft Sort property exposed when Sort operator execution plan properties are generated with undocumented trace flag 8666 enabled<br />
Link: [Internals of the Seven SQL Server Sorts – Part 1]<br />
Link: [Yet another X-Ray for the QP]<br />
Link: https://blogfabiano.com/2012/07/03/statistics-used-in-a-cached-query-plan<br />
Link: http://dataidol.com/davebally/2014/04/12/reasons-why-your-plans-suck-no-56536
Link: http://dataidol.com/davebally/2014/04/12/reasons-why-your-plans-suck-no-56536<br />
Link: https://www.mssqltips.com/sqlservertip/4269/how-to-identify-useful-sql-server-table-statistics/


**Trace Flag: 8671**<br />
Expand Down

0 comments on commit 30986a4

Please sign in to comment.