Skip to content

Commit 7f2c600

Browse files
CopilotBrentOzar
andauthored
Revert generated Install-All-Scripts.sql changes
Agent-Logs-Url: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/sessions/e67e721b-4247-4ead-af5c-937f8ddbcdcb Co-authored-by: BrentOzar <245462+BrentOzar@users.noreply.github.com>
1 parent 46d4e4a commit 7f2c600

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

Install-All-Scripts.sql

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7497,16 +7497,10 @@ IF NOT EXISTS ( SELECT 1
74977497
''Performance'' AS FindingsGroup,
74987498
''Fill Factor Changed'',
74997499
''https://www.brentozar.com/go/fillfactor'' AS URL,
7500-
''The ['' + DB_NAME() + ''] database has '' + CAST(SUM(1) AS NVARCHAR(50)) + '' objects with fill factor = '' + CAST(i.fill_factor AS NVARCHAR(5)) + ''%, taking up a total size of '' + CAST(CAST(SUM(ISNULL(ps.reserved_page_count, 0)) * 8.0 / 1024 / 1024 AS DECIMAL(18,2)) AS NVARCHAR(50)) + '' GB. This can cause memory and storage performance problems.''
7501-
FROM [?].sys.indexes AS i
7502-
LEFT JOIN
7503-
(
7504-
SELECT ps.object_id, ps.index_id, SUM(ps.reserved_page_count) AS reserved_page_count
7505-
FROM [?].sys.dm_db_partition_stats AS ps
7506-
GROUP BY ps.object_id, ps.index_id
7507-
) AS ps ON i.object_id = ps.object_id AND i.index_id = ps.index_id
7508-
WHERE i.fill_factor <> 0 AND i.fill_factor < 80 AND i.is_disabled = 0 AND i.is_hypothetical = 0
7509-
GROUP BY i.fill_factor OPTION (RECOMPILE);';
7500+
''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.''
7501+
FROM [?].sys.indexes
7502+
WHERE fill_factor <> 0 AND fill_factor < 80 AND is_disabled = 0 AND is_hypothetical = 0
7503+
GROUP BY fill_factor OPTION (RECOMPILE);';
75107504
END;
75117505

75127506
IF NOT EXISTS ( SELECT 1

0 commit comments

Comments
 (0)