// sql server · vacuum, statistics & maintenance

fill factor (%)

Free space kept in index leaf pages when an index is created or rebuilt without its own FILLFACTOR.

預設
0 (= 100)
Range
0 to 100
Restart needed
是
Default checked on
SQL Server 2025

其作用

0 means full pages, the same as 100. A lower value leaves room for updates to expand rows in place and delays page splits, and it costs more pages in cache and in scans. ALTER INDEX REBUILD reuses the fill factor the index was built with unless the rebuild names FILLFACTOR explicitly, so the server default reaches mainly new indexes.

預設值

0 (= 100). 0, full pages (SQL Server 2025). It only applies where the index does not carry its own FILLFACTOR.

Check the current value

SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced
FROM sys.configurations
WHERE name = 'fill factor (%)';

-- EXEC sp_configure 'fill factor (%)'; also works, but only while show advanced options is 1;
-- otherwise it fails with Msg 15123 because this is an advanced option.

Change it

EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'fill factor (%)', 90;
RECONFIGURE;
-- then restart the SQL Server service

Restart required: value_in_use changes only after the SQL Server service restarts (is_dynamic = 0). It is an advanced option, so show advanced options must be on to change it.

When to change it

Almost never as a server default. Set FILLFACTOR per index on hot tables that take frequent page splits, or for one rebuild campaign where you know the update pattern.

What can go wrong

A low server-wide default pads every new index quietly: more pages to cache, more reads, more space, with no error pointing back at the option. The effect lands at index creation time, where nobody is looking, and shows up later as generic buffer pool pressure.

Questions about fill factor (%)

What is the default value of fill factor (%) in SQL Server?

0 (= 100). 0, full pages (SQL Server 2025). It only applies where the index does not carry its own FILLFACTOR.

Does changing fill factor (%) require a restart?

Yes. Restart required: value_in_use changes only after the SQL Server service restarts (is_dynamic = 0). It is an advanced option, so show advanced options must be on to change it.

When should I change fill factor (%)?

Almost never as a server default. Set FILLFACTOR per index on hot tables that take frequent page splits, or for one rebuild campaign where you know the update pattern.

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

// one client for every engine

Check fill factor (%) 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.

本頁文字與資料: CC BY 4.0,請註明出處 SQLly (sqlly.app)。 程式碼與 SQL 片段: MIT. 授權詳情