Skip to content

Commit 2fe0cb3

Browse files
committed
Update Collect Database Files Information.sql
1 parent 425bdb4 commit 2fe0cb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Database Maintenance Plans/Collect Database Files Information.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Description: Display information about database files for all databases
44
Scope: Instance
55
Author: Guy Glantser
66
Created: 10/09/2020
7-
Last Updated: 29/05/2024
7+
Last Updated: 08/03/2025
88
Notes: Use this information to plan a maintenance plan for managing the size of the databases in the instance
99
1010
=========================================================================================================================*/
@@ -154,7 +154,7 @@ SELECT
154154
OR
155155
DatabaseFiles.is_percent_growth = 1
156156
AND
157-
CAST ((CAST (DatabaseFiles.size AS DECIMAL(19,2)) * 8.0 / 1024.0) AS DECIMAL(19,2)) * CAST (DatabaseFiles.growth AS DECIMAL(19,2)) > CAST ((CAST (Volumes.available_bytes AS DECIMAL(19,2)) / 1024.0 / 1024.0) AS DECIMAL(19,2))
157+
CAST ((CAST (DatabaseFiles.size AS DECIMAL(19,2)) * 8.0 / 1024.0) AS DECIMAL(19,2)) * CAST (DatabaseFiles.growth AS DECIMAL(19,2)) / 100.0 > CAST ((CAST (Volumes.available_bytes AS DECIMAL(19,2)) / 1024.0 / 1024.0) AS DECIMAL(19,2))
158158
)
159159
THEN
160160
N''Not Enough Space for Next Auto Growth''

0 commit comments

Comments
 (0)