Share via

SQL Server Object Explorer closes immediately in Visual Studio – Error 0x8007007B and SQL Server Express installation fails

Søren Dyrbye 0 Reputation points
2026-03-05T20:16:13.1566667+00:00

Details: I am experiencing an issue with Visual Studio where I cannot create or manage databases.

When I open Visual Studio and go to View → SQL Server Object Explorer, a popup window briefly appears and then immediately closes again. This keeps repeating until I close Visual Studio completely. In the popup window, I can see the error code 0x8007007B.

Because of this, I cannot access or create databases inside Visual Studio.

I have already tried several things to fix the issue:

Uninstalling and reinstalling Visual Studio

Installing different versions (Visual Studio 2022 and the newest version)

Resetting my PC completely

However, the problem still occurs.

I also tried installing Microsoft SQL Server Express (2025 and 2022) manually, but the installation fails with the following error:

Error: unable to install SQL Server (setup.exe)

Exit code (decimal): -2061893606

Error description: Wait on the database engine recovery handle failed

The strange thing is that everything works fine on my desktop PC, but I have this issue on my laptop.

Has anyone experienced something similar or knows what could cause this?

Any help would be greatly appreciated.Details:

I am experiencing an issue with Visual Studio where I cannot create or manage databases.

When I open Visual Studio and go to View → SQL Server Object Explorer, a popup window briefly appears and then immediately closes again. This keeps repeating until I close Visual Studio completely. In the popup window, I can see the error code 0x8007007B.

Because of this, I cannot access or create databases inside Visual Studio.

I have already tried several things to fix the issue:

Uninstalling and reinstalling Visual Studio

Installing different versions (Visual Studio 2022 and the newest version)

Resetting my PC completely

However, the problem still occurs.

I also tried installing Microsoft SQL Server Express (2025 and 2022) manually, but the installation fails with the following error:

Error: unable to install SQL Server (setup.exe)

Exit code (decimal): -2061893606

Error description: Wait on the database engine recovery handle failed

The strange thing is that everything works fine on my desktop PC, but I have this issue on my laptop.

Has anyone experienced something similar or knows what could cause this?

Any help would be greatly appreciated.

SQL Server Database Engine
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 133.1K Reputation points MVP Volunteer Moderator
    2026-03-05T21:14:38.7266667+00:00

    The message Wait on the Database Engine recovery handle failed that you get when you install SQL Server is a generic error that means that SQL Server did not start when Setup wanted to run configuration steps. To understand why it did not start, you need to look in the SQL Server errorlog, which you find in C:\Program Files\Microsoft SQL Server\MSSQL17.SQLEXPRESS\MSSQL\LOG\ERRORLOG.

    If you see a message about 256 misaligned reads, you are running into a known issue where Windows 11 for some disk drives reports a sector size that SQL Server does not cope with. Microsoft has published an article with workarounds for the problem.

    If you don't see the message about misaligned reads, feel free to upload the errorlog here, so we can look at it. You will need to rename to ERRORLOG.txt for the forum software to accept it.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.