Skip to content

Commit aff3027

Browse files
authored
Merge pull request #3082 from BrentOzarULTD/3081_sp_Blitz_large_log_files_OK
#3081 sp_Blitz large log files are OK
2 parents 65ad7dc + f2b25cd commit aff3027

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sp_Blitz.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6377,7 +6377,8 @@ IF @ProductVersionMajor >= 10
63776377
FROM [?].sys.database_files WHERE type_desc = ''LOG''
63786378
AND N''?'' <> ''[tempdb]''
63796379
GROUP BY LEFT(physical_name, 1)
6380-
HAVING COUNT(*) > 1 OPTION (RECOMPILE);';
6380+
HAVING COUNT(*) > 1
6381+
AND SUM(size) < 268435456 OPTION (RECOMPILE);';
63816382
END;
63826383

63836384
IF NOT EXISTS ( SELECT 1

0 commit comments

Comments
 (0)