For the complete documentation index, see llms.txt. This page is also available as Markdown.

Unable to install SQL on Windows 11

Command Centre - Errors › Unable to install SQL on Windows 11

Occurs only on systems where the system disk sector size is greater than 4 KB (essentially PCs, servers, or VMs with a Solid State Drive). It can present itself after a reboot, so it is possible to install SQL, have services start, then have them never start again after the reboot. It can also occur on a fully functional Windows 10 deployment after the machine is upgraded to Windows 11.

Resolution options

  • Downgrade or migrate the system to Windows 10.

  • Migrate to a supported Windows Server edition.

  • Install the SQL databases on a second drive with a sector size that meets the restriction (a traditional hard drive, not an SSD).

  • Patch Windows 11 with a registry key that forces the sector size to be compatible with SQL, then reboot. However, once you have a broken SQL instance, every reboot initiates a consistency check that will fail. Uninstall every SQL instance that was installed before the registry change, then reinstall SQL after the machine has been rebooted.

To add the registry value, open a command prompt As Administrator and run:

REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes" /t REG_MULTI_SZ /d "* 4095" /f

Validate it was added:

REG QUERY "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes"

Or in PowerShell (Administrator):

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" -Name "ForcedPhysicalSectorSizeInBytes" -PropertyType MultiString -Force -Value "* 4095"

Validate:

Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" -Name "ForcedPhysicalSectorSizeInBytes"

Reboot after this registry change.

Note: This is not a Command Centre issue but an operating system issue. Microsoft recommends running SQL on a Windows Server operating system; Windows 11 is strictly a desktop environment.


🔗 Related

Last updated

Was this helpful?