unable to uninstall sql server 2019

Madhusudhan 0 Reputation points
2023-01-22T06:48:48.7666667+00:00

while uninstalling sql server the below error is popping up

kindly help

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,045 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
540 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,291 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,990 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,411 Reputation points
    2023-01-23T16:57:33.3066667+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to SQL uninstallation error.

    First of please reboot your Computer and check if the issue resolved automatically.

    If still issue persists follow below steps which should help you to resolve the issue.

    1. Disable any Antivirus program or Windows firewall you may have for temporary purpose.
    2. Run sfc /scannow from elevated prompt.
    3. Run below DISM commands from elevated prompt.

    DISM /Online /Cleanup-Image /CheckHealth

    DISM /Online /Cleanup-Image /ScanHealth

    DISM /Online /Cleanup-Image /RestoreHealth

    1. Then try to Uninstall SQL from Control Panel -> Programs and Features

    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.
    0 comments No comments

  2. Seeya Xi-MSFT 16,471 Reputation points
    2023-01-23T02:04:03.0966667+00:00

    Hi Madhusudhan,

    For better troubleshooting, you need provide more detailed information about this error.

    What is more, i put uninstall SQL Server steps here for your reference.

    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

    1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    3. Reboot the machine

    In addition, please use an administrator account to reinstall SQL Server on your computer(Right click->run as administrator).

    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".


  3. Limitless Technology 44,411 Reputation points
    2023-01-23T16:57:42.29+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to SQL uninstallation error.

    First of please reboot your Computer and check if the issue resolved automatically.

    If still issue persists follow below steps which should help you to resolve the issue.

    1. Disable any Antivirus program or Windows firewall you may have for temporary purpose.
    2. Run sfc /scannow from elevated prompt.
    3. Run below DISM commands from elevated prompt.

    DISM /Online /Cleanup-Image /CheckHealth

    DISM /Online /Cleanup-Image /ScanHealth

    DISM /Online /Cleanup-Image /RestoreHealth

    1. Then try to Uninstall SQL from Control Panel -> Programs and Features

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

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.