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

  1. Open SQL Server Configuration Manager.
  2. Expand "SQL Server Services" and find the SQL Server instance you want to configure.
  3. 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

  1. Open the "Local Security Policy" management console:
    • Press Windows + R, type secpol.msc, and press Enter.
  2. Navigate to "Local Policies" > "User Rights Assignment."
  3. Find the "Perform volume maintenance tasks" policy.
  4. Double-click on the policy, select the SQL Server service account, and click Remove.
  5. Click "Apply" and then OK to save the changes.

Step 3: Restart the SQL Server Service

  1. Open the Services console:
    • Press Windows + R, type services.msc, and press Enter.
  2. Find the SQL Server service (e.g., SQL Server (MSSQLSERVER)).
  3. 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

Popular posts from this blog

common questions related to updating patches, Cumulative Updates (CUs), Service Packs, and security patches for SQL Server

Azure Private Endpoint