Skip to content

Commit 2e4e676

Browse files
authored
Merge pull request #1046 from BrentOzarULTD/issue_1042/brent
#1042 sp_Blitz show # of objects with low fill factor
2 parents 14c8ff9 + 6d273cd commit 2e4e676

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sp_Blitz.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5254,15 +5254,16 @@ IF @ProductVersionMajor >= 10
52545254
Finding,
52555255
URL,
52565256
Details)
5257-
SELECT DISTINCT 60 AS CheckID,
5257+
SELECT 60 AS CheckID,
52585258
''?'' as DatabaseName,
52595259
100 AS Priority,
52605260
''Performance'' AS FindingsGroup,
52615261
''Fill Factor Changed'',
52625262
''https://BrentOzar.com/go/fillfactor'' AS URL,
5263-
''The ['' + DB_NAME() + ''] database has objects with fill factor < 80%. This can cause memory and storage performance problems, but may also prevent page splits.''
5263+
''The ['' + DB_NAME() + ''] database has '' + CAST(SUM(1) AS NVARCHAR(50)) + '' objects with fill factor = '' + CAST(fill_factor AS NVARCHAR(5)) + ''%. This can cause memory and storage performance problems, but may also prevent page splits.''
52645264
FROM [?].sys.indexes
5265-
WHERE fill_factor <> 0 AND fill_factor < 80 AND is_disabled = 0 AND is_hypothetical = 0 OPTION (RECOMPILE);';
5265+
WHERE fill_factor <> 0 AND fill_factor < 80 AND is_disabled = 0 AND is_hypothetical = 0
5266+
GROUP BY fill_factor OPTION (RECOMPILE);';
52665267
END;
52675268

52685269

0 commit comments

Comments
 (0)