// sql server · disk i/o

FILEGROWTH

How much a data or log file grows each time it fills.

По умолчанию
64MB
Range
A fixed size (KB, MB, GB, TB) or a percentage; 0 disables growth
Restart needed
Нет
Default checked on
SQL Server 2025

Что оно делает

Every growth pauses writes to that file while it extends. Log files cannot use instant file initialization (except growths up to 64MB from SQL Server 2022), so large log growths are zeroed and slow.

Значение по умолчанию

64MB. 64MB for data and log files of databases created on SQL Server 2016 and later, inherited from model.

Check the current value

SELECT name, type_desc, size * 8 / 1024 AS size_mb,
       CASE is_percent_growth WHEN 1 THEN CONCAT(growth, '%') ELSE CONCAT(growth * 8 / 1024, 'MB') END AS growth
FROM sys.database_files;  -- current database

Change it

-- NAME is the logical file name from sys.database_files.name
ALTER DATABASE CURRENT MODIFY FILE (NAME = SalesDb, FILEGROWTH = 1GB);
ALTER DATABASE CURRENT MODIFY FILE (NAME = SalesDb_log, FILEGROWTH = 512MB);

No restart; takes effect immediately.

When to change it

Pre-size files for expected growth, and set fixed-MB growth (not a percentage) on large databases.

What can go wrong

Percentage growth on a big file produces huge, slow growths; tiny growths fragment the log into thousands of VLFs.

Questions about FILEGROWTH

What is the default value of FILEGROWTH in SQL Server?

64MB. 64MB for data and log files of databases created on SQL Server 2016 and later, inherited from model.

Does changing FILEGROWTH require a restart?

No. No restart; takes effect immediately.

When should I change FILEGROWTH?

Pre-size files for expected growth, and set fixed-MB growth (not a percentage) on large databases.

Back to all SQL Server settings, or check the SQL Server manual for every option.

// one client for every engine

Check FILEGROWTH on your own server

SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.