Skip to content

Commit 925714a

Browse files
Update sp_PerfCheck.sql
1 parent 7e8f272 commit 925714a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

sp_PerfCheck/sp_PerfCheck.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4872,7 +4872,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48724872
object_name = mf.name,
48734873
details =
48744874
''Database file is using a very large fixed growth increment of '' +
4875-
CONVERT(nvarchar(20), CONVERT(decimal(18, 2), mf.growth * CONVERT(decimal(18, 2), 8.0) / CONVERT(decimal(18, 2), 1024.0) / CONVERT(decimal(18, 2), 1024.0))) +
4875+
CONVERT(nvarchar(20),
4876+
CONVERT(decimal(18, 2), mf.growth *
4877+
CONVERT(decimal(18, 2), 8.0) /
4878+
CONVERT(decimal(18, 2), 1024.0) /
4879+
CONVERT(decimal(18, 2), 1024.0))) +
48764880
'' GB. Very large growth increments can lead to excessive space allocation. '' +
48774881
CASE
48784882
WHEN mf.type_desc = N''ROWS''
@@ -4883,7 +4887,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48834887
url = N''https://erikdarling.com/sp_PerfCheck#LargeGrowth''
48844888
FROM ' + QUOTENAME(@current_database_name) + N'.sys.database_files AS mf
48854889
WHERE mf.is_percent_growth = 0
4886-
AND mf.growth * CONVERT(decimal(18, 2), 8.0) / CONVERT(decimal(18, 2), 1024.0) / CONVERT(decimal(18, 2), 1024.0) > 10.0; /* Growth > 10GB */';
4890+
AND mf.growth * CONVERT(decimal(18, 2), 8.0) /
4891+
CONVERT(decimal(18, 2), 1024.0) /
4892+
CONVERT(decimal(18, 2), 1024.0) > 10.0; /* Growth > 10GB */';
48874893

48884894
IF @debug = 1
48894895
BEGIN

0 commit comments

Comments
 (0)