When a space growth operation is done within SQL Server (create, restore, auto-grow) the engine places zeros across the file system and then overwrites them to handle the growth. Depending on the size of the growth what I explained above will obviously have some sort of performance impact. Starting with SQL Server 2012 a new setting can be configured called Instant File Initialization that allows SQL Server to run a growth operation without the need of zeroing out the storage before, this has some performance improvements especially with bigger databases, bigger auto-growth setting, and with database restores.
Enabling Instant File Initialization:
To enable Instant File Initialization follow the steps below.
- Launch the Local Security Policy Tool in Windows by running the following from the start menu – secpol.msc
- Expand Local Policies
- Click and Expand User Rights Assignment
- Find and double click Perform Volume Maintenance Tasks
- Add any service accounts that are used by SQL Server
- Click Apply
- Restart SQL Server
The post Set up Instant File Initialization for SQL Server appeared first on VitaminDBA.