index create memory (KB)
Memory given to the sort work of an index build at its start; 0 lets the engine size it.
- Par défaut
0 (auto)- Range
- 0, or 704 to 2147483647 KB
- Restart needed
- Non
- Default checked on
- SQL Server 2025
Ce que cela fait
The option sets the initial allocation, not a hard ceiling: when a build needs more and memory is free, the server takes it and goes past this value, and when memory is tight the build continues with what it already has. min memory per query takes precedence, and a value below it warns at RECONFIGURE and again at execution time.
Valeur par défaut
0 (auto). 0, self-configuring (SQL Server 2025). sys.configurations reports a 704KB minimum.
Check the current value
SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced FROM sys.configurations WHERE name = 'index create memory (KB)'; -- EXEC sp_configure 'index create memory (KB)'; 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 'index create memory (KB)', 16384; RECONFIGURE;
No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1). It is an advanced option, so show advanced options must be on to change it.
When to change it
Rarely. Give concurrent index builds a known starting grant during maintenance windows on a busy server, so one rebuild does not win every arbitration.
What can go wrong
The grant is per index operation, so several parallel rebuilds each carry one and the combined ask multiplies across the window. A value below min memory per query is accepted with a warning and then underdelivers at execution time.
Questions about index create memory (KB)
What is the default value of index create memory (KB) in SQL Server?
0 (auto). 0, self-configuring (SQL Server 2025). sys.configurations reports a 704KB minimum.
Does changing index create memory (KB) require a restart?
No. No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1). It is an advanced option, so show advanced options must be on to change it.
When should I change index create memory (KB)?
Rarely. Give concurrent index builds a known starting grant during maintenance windows on a busy server, so one rebuild does not win every arbitration.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Check index create memory (KB) 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.
Texte et données de cette page : CC BY 4.0, en citant SQLly (sqlly.app). Code et extraits SQL : MIT. Détails de la licence