Trouble uninstalling and re-installing SQL Server 2019 Standard on a Windows 11 device.

MR BILL 266 Reputation points
2022-05-19T19:32:14.107+00:00

I'm having major issues uninstalling and re-installing SQL server 2019 Standard. It took forever to uninstall 2019 SQL Server and it left a lot of stuff uninstalled. I had other versions of SQL Server installed over time all the way back to 2008. I've uninstalled them all but it was acting like it wasn't uninstalled when I would reinstall, like showing instances that I know I had uninstalled already ect. I believe I finally got everything uninstalled but I'm now getting errors when installing and I've attached the two errors. I'm trying to find out if there is a way to manually uninstall everything SQL Server through the registry or if anyone has ideas as to what I should do to get the 2019 SQL Server standard installed correctly. Backward compatibility and replication seem to not have installed correctly. Also, SQL Configuration Manager did not install correctly. Any help is appreciated.

203841-sql-install-error2-2022-05-19-101512.png203758-sql-install-error3-2022-05-19-101512.png

SQL Server Other
{count} votes

Accepted answer
  1. Seeya Xi-MSFT 16,586 Reputation points
    2022-05-20T02:20:06.18+00:00

    Hi @MR BILL ,

    Welcome to Microsoft Q&A!
    Please follow the below steps to remove all components of previous installed SQL Server completely:

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in regedit:
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    6. Reboot the machine
      In addition, please use an administrator account to reinstall SQL Server on your computer(Right click->run as administrator).
      If a new error appears on reinstallation, please provide summary.txt or detail.txt for troubleshooting. I put the path here.

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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