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: sp_Blitz.sql
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6778,12 +6778,7 @@ IF @ProductVersionMajor >= 10
6778
6778
6779
6779
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 99) WITHNOWAIT;
6780
6780
6781
-
EXECdbo.sp_MSforeachdb'USE [?];
6782
-
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
6783
-
IF EXISTS (SELECT * FROM sys.tables WITH (NOLOCK) WHERE name = ''sysmergepublications'' )
6784
-
IF EXISTS ( SELECT * FROM sysmergepublications WITH (NOLOCK) WHERE retention = 0)
6785
-
INSERT INTO #BlitzResults (CheckID, DatabaseName, Priority, FindingsGroup, Finding, URL, Details)
6786
-
SELECT DISTINCT 99, DB_NAME(), 110, ''Performance'', ''Infinite merge replication metadata retention period'', ''https://www.brentozar.com/go/merge'', (''The ['' + DB_NAME() + ''] database has merge replication metadata retention period set to infinite - this can be the case of significant performance issues.'')';
6781
+
EXECdbo.sp_MSforeachdb'USE [?]; SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; IF EXISTS (SELECT * FROM sys.tables WITH (NOLOCK) WHERE name = ''sysmergepublications'' ) IF EXISTS ( SELECT * FROM sysmergepublications WITH (NOLOCK) WHERE retention = 0) INSERT INTO #BlitzResults (CheckID, DatabaseName, Priority, FindingsGroup, Finding, URL, Details) SELECT DISTINCT 99, DB_NAME(), 110, ''Performance'', ''Infinite merge replication metadata retention period'', ''https://www.brentozar.com/go/merge'', (''The ['' + DB_NAME() + ''] database has merge replication metadata retention period set to infinite - this can be the case of significant performance issues.'')';
6787
6782
END;
6788
6783
/*
6789
6784
Note that by using sp_MSforeachdb, we're running the query in all
@@ -7048,12 +7043,11 @@ IF @ProductVersionMajor >= 10
7048
7043
''Multiple Log Files on One Drive'',
7049
7044
''https://www.brentozar.com/go/manylogs'',
7050
7045
(''The ['' + DB_NAME() + ''] database has multiple log files on the '' + LEFT(physical_name, 1) + '' drive. This is not a performance booster because log file access is sequential, not parallel.'')
7051
-
FROM [?].sys.database_files
7052
-
WHERE type_desc = ''LOG''
7046
+
FROM [?].sys.database_files WHERE type_desc = ''LOG''
0 commit comments