// sql server · disk i/o

instant file initialization

Windows right that lets SQL Server skip zeroing data files when they are created or grown.

Padrão
Not granted
Range
Granted or not granted
Restart needed
Não
Default checked on
SQL Server 2025

O que faz

Grant the service account the Perform volume maintenance tasks right (SE_MANAGE_VOLUME_NAME) and data file creations and growths skip the zeroing pass, which turns a minutes-long growth into an instant one. Log files still zero, apart from autogrowths up to 64MB that skip it since SQL Server 2022. SQL Server on Linux has no equivalent and always zeroes files.

Valor padrão

Not granted. Setup has offered to grant the right during installation since SQL Server 2022. sys.dm_server_services.instant_file_initialization_enabled reports Y or N.

Check the current value

SELECT servicename, instant_file_initialization_enabled
FROM sys.dm_server_services
WHERE servicename LIKE 'SQL Server (%';

Change it

-- Windows: Local Security Policy, Local Policies, User Rights Assignment,
-- Perform volume maintenance tasks: add the Database Engine service account or its service SID,
-- then restart the SQL Server service

No sp_configure and no RECONFIGURE: the privilege is a Windows one. Grant Perform volume maintenance tasks to the service account or its service SID, then restart the SQL Server service so the running process picks it up.

When to change it

Windows servers that grow data files in production: big restores, ETL landings, databases that still rely on autogrow. Recheck after migrations or service account changes, because a fresh account starts without the right.

What can go wrong

Unzeroed pages can hold readable fragments of files the OS deleted, until new data overwrites them, so deleted disk content is potentially accessible to anyone who can read the data files. Microsoft still recommends enabling it: the benefits outweigh the risk, and TDE closes the hole where the data is sensitive.

Questions about instant file initialization

What is the default value of instant file initialization in SQL Server?

Not granted. Setup has offered to grant the right during installation since SQL Server 2022. sys.dm_server_services.instant_file_initialization_enabled reports Y or N.

Does changing instant file initialization require a restart?

No. No sp_configure and no RECONFIGURE: the privilege is a Windows one. Grant Perform volume maintenance tasks to the service account or its service SID, then restart the SQL Server service so the running process picks it up.

When should I change instant file initialization?

Windows servers that grow data files in production: big restores, ETL landings, databases that still rely on autogrow. Recheck after migrations or service account changes, because a fresh account starts without the right.

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

// one client for every engine

Check instant file initialization 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.

Texto e dados desta página: CC BY 4.0, com crédito ao SQLly (sqlly.app). Código e trechos SQL: MIT. Detalhes da licença