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_BlitzIndex_Checks_by_Priority.md
+4-2Lines changed: 4 additions & 2 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.
SET @StringToExecute ='INSERT INTO #BlitzResults (CheckID, DatabaseName, Priority, FindingsGroup, Finding, URL, Details)
4343
4343
SELECT '+CAST(@CurrentCheckID ASNVARCHAR(200)) +', d.[name], '+CAST(@CurrentPriority ASNVARCHAR(200)) +', ''Non-Default Database Config'', '''+ @CurrentFinding +''','''+ @CurrentURL +''','''+COALESCE(@CurrentDetails, 'This database setting is not the default.') +'''
4344
4344
FROM sys.databases d
4345
-
WHERE d.database_id > 4 AND d.state <> 1 AND (d.['+ @CurrentName +'] NOT IN (0, 60) OR d.['+ @CurrentName +'] IS NULL) OPTION (RECOMPILE);';
4345
+
WHERE d.database_id > 4 AND d.state = 0 AND (d.['+ @CurrentName +'] NOT IN (0, 60) OR d.['+ @CurrentName +'] IS NULL) OPTION (RECOMPILE);';
4346
4346
ELSE
4347
4347
SET @StringToExecute ='INSERT INTO #BlitzResults (CheckID, DatabaseName, Priority, FindingsGroup, Finding, URL, Details)
4348
4348
SELECT '+CAST(@CurrentCheckID ASNVARCHAR(200)) +', d.[name], '+CAST(@CurrentPriority ASNVARCHAR(200)) +', ''Non-Default Database Config'', '''+ @CurrentFinding +''','''+ @CurrentURL +''','''+COALESCE(@CurrentDetails, 'This database setting is not the default.') +'''
4349
4349
FROM sys.databases d
4350
-
WHERE d.database_id > 4 AND d.state <> 1 AND (d.['+ @CurrentName +'] <> '+ @CurrentDefaultValue +' OR d.['+ @CurrentName +'] IS NULL) OPTION (RECOMPILE);';
4350
+
WHERE d.database_id > 4 AND d.state = 0 AND (d.['+ @CurrentName +'] <> '+ @CurrentDefaultValue +' OR d.['+ @CurrentName +'] IS NULL) OPTION (RECOMPILE);';
4351
4351
4352
4352
IF @Debug =2AND @StringToExecute ISNOTNULLPRINT @StringToExecute;
4353
4353
IF @Debug =2AND @StringToExecute ISNULLPRINT'@StringToExecute has gone NULL, for some reason.';
@@ -7770,6 +7770,7 @@ IF @ProductVersionMajor >= 10
7770
7770
WHEN [T].[TraceFlag] ='1117'THEN'1117 enabled globally, which grows all files in a filegroup at the same time.'
7771
7771
WHEN [T].[TraceFlag] ='1118'THEN'1118 enabled globally, which tries to reduce SGAM waits.'
7772
7772
WHEN [T].[TraceFlag] ='1211'THEN'1211 enabled globally, which disables lock escalation when you least expect it. This is usually a very bad idea.'
7773
+
WHEN [T].[TraceFlag] ='1204'THEN'1222 enabled globally, which captures deadlock graphs in the error log.'
7773
7774
WHEN [T].[TraceFlag] ='1222'THEN'1222 enabled globally, which captures deadlock graphs in the error log.'
7774
7775
WHEN [T].[TraceFlag] ='1224'THEN'1224 enabled globally, which disables lock escalation until the server has memory pressure. This is usually a very bad idea.'
7775
7776
WHEN [T].[TraceFlag] ='1806'THEN'1806 enabled globally, which disables Instant File Initialization, causing restores and file growths to take longer. This is usually a very bad idea.'
0 commit comments