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
{{ message }}
Repository navigation
Commit 0887f9c
Browse filesBrowse the repository at this point in the historyBrowse files
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 2301) WITHNOWAIT;
@@ -2046,7 +2046,7 @@ AS
2046
2046
''Performance'' AS FindingsGroup,
2047
2047
''Server Triggers Enabled'' AS Finding,
2048
2048
''https://www.brentozar.com/go/logontriggers/'' AS URL,
2049
-
(''Server Trigger ['' + [name] ++ ''] is enabled. Make sure you understand what that trigger is doing - the less work it does, the better.'') AS Details
2049
+
(''Server Trigger ['' + [name] + ''] is enabled. Make sure you understand what that trigger is doing - the less work it does, the better.'') AS Details
2050
2050
FROM sys.server_triggers
2051
2051
WHERE is_disabled = 0 AND is_ms_shipped = 0 AND name NOT LIKE ''rds^_%'' ESCAPE ''^'' OPTION (RECOMPILE);';
2052
2052
@@ -3995,6 +3995,7 @@ AS
3995
3995
+N' severity level memory issues reported in the last 4 hours in sys.dm_os_memory_health_history.'
ANDSERVERPROPERTY('EngineEdition') <>8; /* Hekaton is always enabled in Managed Instances per https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/1919 */
'Download an updated First Responder Kit. Your version check failed due to dynamic query failure.'+ @crlf +
5508
-
'Error: following query failed at execution (check if component ['+ISNULL(@CurrentComponentName,@CurrentComponentName) +'] is mandatory and missing)'+ @crlf +
5509
+
'Error: following query failed at execution (check if component ['+ISNULL(@CurrentComponentName,'(unknown)') +'] is mandatory and missing)'+ @crlf +
LEFT OUTER JOIN master.sys.databases AS sDB ON SM.object_id = DB_id()
7671
7674
LEFT OUTER JOIN dbo.sysobjects AS SO ON SM.object_id = SO.id and type = ''P''
7672
7675
LEFT OUTER JOIN INFORMATION_SCHEMA.ROUTINES AS ISR on ISR.Routine_Name = SO.name AND ISR.SPECIFIC_CATALOG = DB_Name()
7673
7676
WHERE SM.is_recompiled=1 OPTION (RECOMPILE); /* oh the rich irony of recompile here */
@@ -7688,7 +7691,7 @@ IF @ProductVersionMajor >= 10
7688
7691
Details ='['+ DBName +'].['+ SPSchema +'].['+ ProcName +'] has WITH RECOMPILE in the stored procedure code, which may cause increased CPU usage due to constant recompiles of the code.',
7689
7692
CheckID ='78'
7690
7693
FROM #RecompileAS TR
7691
-
WHERE ProcName NOTLIKE'sp_AllNightLog%'AND ProcName NOTLIKE'sp_AskBrent%'AND ProcName NOTLIKE'sp_Blitz%'AND ProcName NOTLIKE'sp_PressureDetector'
7694
+
WHERE ProcName NOTLIKE'sp_AllNightLog%'AND ProcName NOTLIKE'sp_AskBrent%'AND ProcName NOTLIKE'sp_Blitz%'AND ProcName NOTLIKE'sp_PressureDetector%'
7692
7695
AND DBName NOTIN ('master', 'model', 'msdb', 'tempdb');
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.'
8829
8832
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?'
8830
8833
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?'
8831
-
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.'
8832
8834
WHEN [T].[TraceFlag] ='7752'AND @CheckUserDatabaseObjects =0THEN'7752 enabled globally, which stops queries needing to wait on Query Store loading up after database recovery. @CheckUserDatabaseObjects was set to 0, so we skipped checking if any databases have Query Store enabled.'
8833
8835
WHEN [T].[TraceFlag] ='7752'AND @QueryStoreInUse =1THEN'7752 enabled globally, which stops queries needing to wait on Query Store loading up after database recovery.'
8836
+
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.'
8834
8837
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?'
8835
8838
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?'
8836
8839
WHEN [T].[TraceFlag] ='8048'THEN'8048 enabled globally, which tries to reduce CMEMTHREAD waits on servers with a lot of logical processors.'
'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
8888
-
FROM #TraceStatus T
8890
+
'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;
8889
8891
END;
8890
8892
END;
8891
8893
@@ -10295,9 +10297,9 @@ IF @ProductVersionMajor >= 10 AND NOT EXISTS ( SELECT 1
10295
10297
+N' Total Server Memory (GB): '+CAST((CAST((pTotal.cntr_value/1024.0/1024.0) ASDECIMAL(10,1))) ASNVARCHAR(100))
0 commit comments