disable Instant File Initialization (IFI) in SQL Server
To disable Instant File Initialization (IFI) in SQL Server, you need to revoke the "Perform Volume Maintenance Tasks" permission from the SQL Server service account. Here's how to do it:
Step 1: Identify the SQL Server Service Account
- Open SQL Server Configuration Manager.
- Expand "SQL Server Services" and find the SQL Server instance you want to configure.
- Note the service account being used for the SQL Server service (e.g.,
NT Service\MSSQLSERVER, a domain account, or a local account).
Step 2: Revoke "Perform Volume Maintenance Tasks" Permission
- Open the "Local Security Policy" management console:
- Press
Windows + R, typesecpol.msc, and pressEnter.
- Press
- Navigate to "Local Policies" > "User Rights Assignment."
- Find the "Perform volume maintenance tasks" policy.
- Double-click on the policy, select the SQL Server service account, and click Remove.
- Click "Apply" and then OK to save the changes.
Step 3: Restart the SQL Server Service
- Open the Services console:
- Press
Windows + R, typeservices.msc, and pressEnter.
- Press
- Find the SQL Server service (e.g.,
SQL Server (MSSQLSERVER)). - Right-click on the service and select Restart.
Disabling Instant File Initialization will cause database file growth operations and restores to take longer, as the file must be zero-initialized.
Comments
Post a Comment