Know How to Start SQL Server Service While Installing in Windows 11

SQL Server Service in Window 11

How to Start SQL Server Service During Installing in Windows 11


Overview

We recently encountered an issue with the SQL Server service not starting in Windows 11. The error is below-mention:

SQL Server error.


If you have this type of issue while installing SQL, then here is the solution.

Do follow the below-given steps to learn the process

  1. Search the Command Prompt option in your system.
  2. Click on the Run as Administrator option.
Reference image:

Run as administrator.

  1. A new window of administrator will appear in next slide.
  2. Copy the following line: ( REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes" /t   REG_MULTI_SZ /d "* 512" /f )
  3. After that, paste the copied line into the administrator command window.
  4. Then, press enter and close the window with exist button.
Note: To solve this issue, we found the following solution: after changing the value to 512 in place of 4095 the SQL server service works.

Reference image:

Run command to enable SQL server.


  1. After doing above-given process Restart your system and again Reinstalled the SQL server.
Note: There are several reasons why the SQL service is not functioning, but the command error is one of them. So users can do the process as mentioned above for Installation.