| title | Configure the fill factor Server Configuration Option | Microsoft Docs | |
|---|---|---|
| description | Learn about the fill factor option. See how to configure it to specify the percentage of space on each leaf-level page that SQL Server fills with data. | |
| ms.custom | ||
| ms.date | 03/02/2017 | |
| ms.prod | sql | |
| ms.prod_service | high-availability | |
| ms.reviewer | ||
| ms.technology | configuration | |
| ms.topic | conceptual | |
| helpviewer_keywords |
|
|
| ms.assetid | b920ec34-ba8b-4bb8-af53-a3ffd06bafa6 | |
| author | markingmyname | |
| ms.author | maghan |
[!INCLUDE SQL Server]
This topic describes how to configure the fill factor server configuration option in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. Fill factor is provided for fine-tuning index data storage and performance. When an index is created or rebuilt, the fill-factor value determines the percentage of space on each leaf-level page to be filled with data, reserving the rest as free space for future growth. For more information, see Specify Fill Factor for an Index.
In This Topic
-
Before you begin:
-
To configure the fill factor option, using:
-
Follow Up: After you configure the fill factor option
- This option is an advanced option and should be changed only by an experienced database administrator or certified [!INCLUDEssNoVersion] professional.
Execute permissions on sp_configure with no parameters or with only the first parameter are granted to all users by default. To execute sp_configure with both parameters to change a configuration option or to run the RECONFIGURE statement, a user must be granted the ALTER SETTINGS server-level permission. The ALTER SETTINGS permission is implicitly held by the sysadmin and serveradmin fixed server roles.
-
In Object Explorer, right-click a server and select Properties.
-
Click the Database Settings node.
-
In the Default index fill factor box, type or select the index fill factor that you want.
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute. This example shows how to use sp_configure to set the value of the
fill factoroption to100.
Use AdventureWorks2012;
GO
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'fill factor', 100;
GO
RECONFIGURE;
GO For more information, see Server Configuration Options (SQL Server).
The server must be restarted before the setting can take effect.
RECONFIGURE (Transact-SQL)
ALTER INDEX (Transact-SQL)
CREATE INDEX (Transact-SQL)
Specify Fill Factor for an Index
Server Configuration Options (SQL Server)
sp_configure (Transact-SQL)
sys.indexes (Transact-SQL)