Skip to content

Commit 1ea0afc

Browse files
authored
Update trace flag 7412 info
Thanks to ReeceGoding #227
1 parent c059099 commit 1ea0afc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SQL Server Trace Flag.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ If you know behavior some of them please open an issue or contact me (taranov.pr
234234
- [Trace Flag 3427](#3427) (for SQL Server 2016)
235235
- [Trace Flag 3449](#3449) (for versions SQL Server 2012 SP3 CU3 or later or SQL Server 2014 SP1 CU7 or later)
236236
- [Trace Flag 6534](#6534) (for versions SQL Server 2012, 2014, 2016) (if use [spatial data types](https://docs.microsoft.com/sql/relational-databases/spatial/spatial-data-sql-server))
237-
- [Trace Flag 7412](#7412) (for versions >= SQL Server 2016)
237+
- [Trace Flag 7412](#7412) (for versions >= SQL Server 2016 and < SQl Server 2019)
238238
- [Trace Flag 7745](#7745) (for versions >= SQL Server 2016 and Query Store enabled)
239239
- [Trace Flag 7752](#7752) (for versions >= SQL Server 2016 and < 2019 and Query Store enabled)
240240
- [Trace Flag 7806](#7806) (for SQL Server Express Edition)
@@ -3575,7 +3575,8 @@ Scope: global or session or query
35753575
Function: Enables the lightweight query execution statistics profiling infrastructure.
35763576
unless your server is already CPU bound, like you’re running all the time with 95% CPU, unless you are at that point, turn on this trace flag at any server you have.
35773577
This would be my advice here because this enables that lightweight profiling infrastructure there and then you’ll see in a few minutes what it unleashes here.
3578-
So one thing that happens when I enable the lightweight profiling is that the sys.dm_exec_query_profiles DMV, which is something that actually populates the live query stats ability or feature of SSMS, now also is also populated with this lightweight profiling, which means that for all essence, we are now able to run a live query stats on all fashions at any given point in time, and this is extremely useful for let’s say a production DBA that someone calls and says, “Hey, you have a problem. To tap into running system and look at what it’s doing.”<br />
3578+
So one thing that happens when I enable the lightweight profiling is that the sys.dm_exec_query_profiles DMV, which is something that actually populates the live query stats ability or feature of SSMS, now also is also populated with this lightweight profiling, which means that for all essence, we are now able to run a live query stats on all fashions at any given point in time, and this is extremely useful for let’s say a production DBA that someone calls and says, “Hey, you have a problem. To tap into running system and look at what it’s doing.”
3579+
**Applies to: SQL Server 2016 (13.x) Service Pack 1 and later versions. Starting with SQL Server 2019 (15.x), this trace flag has no effect because lightweight profiling is enabled by default.**<br />
35793580
Link: [Docs Trace Flags]<br />
35803581
Link: https://support.microsoft.com/kb/3170113<br />
35813582
Link: https://www.brentozar.com/archive/2017/10/get-live-query-plans-sp_blitzwho/<br />

0 commit comments

Comments
 (0)