You may try to uninstall manually:
uninstalling sql server2019
Due to some connectivity issue with the sql server, I tried to uninstall and re-install sql server2019. But when i tried to uninstall it from settings>>apps>>apps and features>> Microsoft sql server 2019(64 bit)>> uninstall... it was unsuccessful and it threw an error. I have attached the snapshot of the error and below is the log summary . kindly help me to solve the issue.
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2068052294
Start time: 2021-04-24 18:31:33
End time: 2021-04-24 18:36:31
Requested action: Uninstall
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for ComponentUpdate: Use the following information to resolve the error, and then, try to uninstall this feature again.
Machine Properties:
Machine name: DESKTOP-BDVL8SN
Machine processor count: 4
OS version: Microsoft Windows 10 Pro (10.0.19042)
OS service pack:
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered Configured
SQL Server 2019 MSSQLSERVER MSSQL15.MSSQLSERVER Database Engine Services 1033 Developer Edition 15.0.2000.5 No Yes
Package properties:
Description: Microsoft SQL Server 2019
ProductName: SQL Server 2019
Type: RTM
Version: 15
SPLevel: 0
Installation edition: Developer
User Input Settings:
ACTION: Uninstall
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20210424_183132\ConfigurationFile.ini
ENU: true
FEATURES: SQLENGINE, BROWSER, WRITER
HELP: false
IACCEPTPYTHONLICENSETERMS: false
IACCEPTROPENLICENSETERMS: false
IACKNOWLEDGEENTCALLIMITS: false
INDICATEPROGRESS: false
INSTANCEID: <empty>
INSTANCENAME: MSSQLSERVER
MRCACHEDIRECTORY:
QUIET: false
QUIETSIMPLE: false
SUPPRESSPAIDEDITIONNOTICE: false
SUPPRESSPRIVACYSTATEMENTNOTICE: false
UIMODE: Normal
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20210424_183132\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: Setup Support Files
Status: Failed
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, and then, try to uninstall this feature again.
Component name: SQL Server Database Engine Services Shared Features
Component error code: 1722
Component log file: C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20210424_183132\sql_engine_core_shared_Cpu64_1.log
Error description: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=15.0.4013.40&EvtType=sql_engine_core_shared.msi%40UninstallService.754C9258_CE8E_4420_9B81_7AD051B1479F%401722
Rules with failures or warnings:
Rules report file: C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20210424_183132\SystemConfigurationCheck_Report.htm
SQL Server Reporting Services
SQL Server | Other
6 answers
Sort by: Most helpful
-
-
CarrinWu-MSFT 6,891 Reputation points2021-04-26T08:07:55.057+00:00 Hi @Akash Nath ,
Welcome to Microsoft Q&A!
Before you uninstall your SQL Server, we recommend that you stop all SQL Server services before you uninstall SQL Server components. Active connections can prevent successful uninstallation. And then please follow below steps to uninstall SQL Server manually:
- Uninstall the existing SQL Server and all the components from the add remove program.
- Backup the registry.
- Delete the following keys using regedit:
--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer - Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
- Rename all the SQL Server folders in the computer.
- Reboot the machine.
I have a similar issue before and solved by this solution, hope it will help you also.
Best regards,
Carrin
If the answer is helpful, please click "Accept Answer" and upvote it.
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. -
CarrinWu-MSFT 6,891 Reputation points2021-04-29T01:40:04.53+00:00 Hi @Akash Nath ,
Please refer to below shotcreem to figure it out:
Finally, restart your computer and reinstall SQL server. -
CarrinWu-MSFT 6,891 Reputation points2021-05-06T08:46:50.517+00:00 Hi @Akash Nath ,
(08) 2021-04-30 13:30:02 Slp: The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.
please refer to this solution for your issues:
I have faced the same problem and fixed it as below:
I downloadeded the portable (executable on any window based computer without installation) "Program Install and Uninstall troubleshooter" (a replacement of Windows Installer Cleanup Utility) from http://support.microsoft.com/kb/2438651 and executed the Fixit.exe. Have repeated the option named as "Fix problems with programs that can't be installed or uninstalled" to uninstalled the SQL Server 2008 registry entry(ies). After that, I installed the SQL Server 2008 which completed successfully.Also, please close your Firewall service when you reinstall SQL Server. And then you could open Firewall service after you complete the installtion.
Best regards,
Carrin
If the answer is helpful, please click "Accept Answer" and upvote it.
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. -
James Graham 1 Reputation point
2022-12-09T19:31:56.703+00:00 Thank you, Carrin,
Just had to use it and it worked as advertised.


. I run into the same issue when trying to uninstall SQL Server 2019. When checking user removal instructions I found that I have several KEYS in the Registry. Follows screen shots of SQL Related KEYS in the Registry, SQL related APP and Features in Settings and SQL related folders in Windows\Program Files. I will appreciate if you could indicate which Registry Keys should be deleted, which APP programs should be deleted and which folders should be renamed/deleted