You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/sp_Blitz_Checks_by_Priority.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ Before adding a new check, make sure to add a Github issue for it first, and hav
6
6
7
7
If you want to change anything about a check - the priority, finding, URL, or ID - open a Github issue first. The relevant scripts have to be updated too.
WHEN ''ALL'' THEN ''captures more data than you will probably use. If your workload is heavily ad-hoc, then it can also cause Query Store to capture so much that it turns itself off.''
6891
+
WHEN ''NONE'' THEN ''stops Query Store capturing data for new queries.''
6892
+
WHEN ''CUSTOM'' THEN ''suggests that somebody has gone out of their way to only capture exactly what they want.''
6893
+
ELSE ''is not documented.'' END)
6894
+
FROM [?].sys.database_query_store_options
6895
+
WHERE desired_state <> 0 /* No point in checking this if Query Store is off. */
6896
+
AND query_capture_mode_desc <> ''AUTO''
6897
+
OPTION (RECOMPILE)';
6898
+
END;
6864
6899
6865
6900
IF @ProductVersionMajor =13AND @ProductVersionMinor <2149--2016 CU1 has the fix in it
6866
6901
ANDNOTEXISTS ( SELECT1
@@ -8490,11 +8525,11 @@ IF @ProductVersionMajor >= 10
8490
8525
WHEN [T].[TraceFlag] ='3226'THEN'3226 enabled globally, which keeps the event log clean by not reporting successful backups.'
8491
8526
WHEN [T].[TraceFlag] ='3505'THEN'3505 enabled globally, which disables Checkpoints. This is usually a very bad idea.'
8492
8527
WHEN [T].[TraceFlag] ='4199'THEN'4199 enabled globally, which enables non-default Query Optimizer fixes, changing query plans from the default behaviors.'
8493
-
WHEN [T].[TraceFlag] ='7745'AND @ProductVersionMajor >12AND@QueryStoreInUse =1THEN'7745 enabled globally, which makes shutdowns/failovers quicker by not waiting for Query Store to flush to disk. This good idea loses you the non-flushed Query Store data.'
8528
+
WHEN [T].[TraceFlag] ='7745'AND @QueryStoreInUse =1THEN'7745 enabled globally, which makes shutdowns/failovers quicker by not waiting for Query Store to flush to disk. This good idea loses you the non-flushed Query Store data.'
8494
8529
WHEN [T].[TraceFlag] ='7745'AND @ProductVersionMajor >12THEN'7745 enabled globally, which is for Query Store. None of your databases have Query Store enabled, so why do you have this turned on?'
8495
8530
WHEN [T].[TraceFlag] ='7745'AND @ProductVersionMajor <=12THEN'7745 enabled globally, which is for Query Store. Query Store does not exist on your SQL Server version, so why do you have this turned on?'
8496
8531
WHEN [T].[TraceFlag] ='7752'AND @ProductVersionMajor >14THEN'7752 enabled globally, which is for Query Store. However, it has no effect in your SQL Server version. Consider turning it off.'
8497
-
WHEN [T].[TraceFlag] ='7752'AND @ProductVersionMajor >12AND@QueryStoreInUse =1THEN'7752 enabled globally, which stops queries needing to wait on Query Store loading up after database recovery.'
8532
+
WHEN [T].[TraceFlag] ='7752'AND @QueryStoreInUse =1THEN'7752 enabled globally, which stops queries needing to wait on Query Store loading up after database recovery.'
8498
8533
WHEN [T].[TraceFlag] ='7752'AND @ProductVersionMajor >12THEN'7752 enabled globally, which is for Query Store. None of your databases have Query Store enabled, so why do you have this turned on?'
8499
8534
WHEN [T].[TraceFlag] ='7752'AND @ProductVersionMajor <=12THEN'7752 enabled globally, which is for Query Store. Query Store does not exist on your SQL Server version, so why do you have this turned on?'
8500
8535
WHEN [T].[TraceFlag] ='8048'THEN'8048 enabled globally, which tries to reduce CMEMTHREAD waits on servers with a lot of logical processors.'
@@ -8504,6 +8539,54 @@ IF @ProductVersionMajor >= 10
'Trace Flag 7745 not enabled globally. It makes shutdowns/failovers quicker by not waiting for Query Store to flush to disk. It is recommended, but it loses you the non-flushed Query Store data.'AS Details
'Trace Flag 7752 not enabled globally. It stops queries needing to wait on Query Store loading up after database recovery. It is so recommended that it is enabled by default as of SQL Server 2019.'AS Details
8588
+
FROM #TraceStatus T
8589
+
END;
8507
8590
END;
8508
8591
8509
8592
/* High CMEMTHREAD waits that could need trace flag 8048.
0 commit comments