Skip to content

Commit

Permalink
#3599 sp_Blitz overflow
Browse files Browse the repository at this point in the history
Really, really big data files would overflow an NVARCHAR(10). Closes #3599.
  • Loading branch information
BrentOzar committed Dec 28, 2024
1 parent 6d6fdfb commit c6e0826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7049,7 +7049,7 @@ IF @ProductVersionMajor >= 10
''File Configuration'' AS FindingsGroup,
''File growth set to percent'',
''https://www.brentozar.com/go/percentgrowth'' AS URL,
''The ['' + DB_NAME() + ''] database file '' + f.physical_name + '' has grown to '' + CONVERT(NVARCHAR(10), CONVERT(NUMERIC(38, 2), (f.size / 128.) / 1024.)) + '' GB, and is using percent filegrowth settings. This can lead to slow performance during growths if Instant File Initialization is not enabled.''
''The ['' + DB_NAME() + ''] database file '' + f.physical_name + '' has grown to '' + CONVERT(NVARCHAR(20), CONVERT(NUMERIC(38, 2), (f.size / 128.) / 1024.)) + '' GB, and is using percent filegrowth settings. This can lead to slow performance during growths if Instant File Initialization is not enabled.''
FROM [?].sys.database_files f
WHERE is_percent_growth = 1 and size > 128000 OPTION (RECOMPILE);';
END;
Expand Down

0 comments on commit c6e0826

Please sign in to comment.