1. Home
  2. /
  3. Docs
  4. /
  5. SQL Server
  6. /
  7. Troubleshooting
  8. /
  9. SQL Server cannot be...

SQL Server won’t install—what should I do?

SQL Server won’t install—what should I do?

Save the full error message and check which component failed. The message “Installation failed” alone is not enough to determine the cause. The installation checks and log files provide more information.

Step 1: Check the basic terms and conditions

  • Is your SQL Server version compatible with your operating system?
  • Are you using the correct installation media and edition?
  • Do you run setup.exe as an administrator?
  • Is there enough free disk space?
  • Have the required updates and any necessary restarts been completed?

Schedule a necessary restart at a convenient time if the computer is already running business services.

Step 2: Review the installation requirements

In Setup, check the Install Rules and Feature Rules pages. If a check fails, open the details and resolve the listed issue before trying again.

Step 3: Open the installation log

Start with Summary.txt. This is usually located in:

C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\

For SQL Server 2019, the version number is usually 150; for SQL Server 2022, it is 160.

Search for “Failed,” “Error,” and the error description. For more details, open the folder with the date and time of the failed attempt and view Detail.txt.

The database engine cannot start

If you see an error message such as “Wait on the Database Engine recovery handle failed,” further investigation is required. Also review the SQL Server ERRORLOG to determine why the database service isn’t starting.

A previous installation blocks Setup

A failed installation attempt may leave behind a partial installation. In that case, use the Microsoft procedure for removing a partial installation.

Do not simply delete SQL Server folders, registry entries, or existing instances. Other databases or applications may depend on them.

Need help with installation?

Email your order number, SQL Server version and edition, Windows version, and a screenshot of the full error message to info@cd-keys.uk, or use the contact page. Include the relevant error lines from Summary.txt and specify which components are already installed. Hide product codes and do not share passwords or database contents.