Solved

Uninstall SQL 2008 R2

Posted on 2014-01-30
4
1,804 Views
Last Modified: 2014-02-22
Hi,

I cannot uninstall SQL2008 R2 on a Windows 2012 server.

We have tried the following without success:

1.      http://support.microsoft.com/mats/Program_Install_and_Uninstall/
2.      http://developerscentral.net/remove-sql-server-2008-r2-completely/
sql1.PNG
sql2.PNG
sql3.PNG
0
Comment
Question by:xpandit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Surendra Nath
ID: 39821052
I dont know if you already did it or not...

In these scenario's I will try to do a repair the SQL Server installation first...
Then try to stop the SQL Server instance, if it is an enterprise then I will bring the whole box down for the time (remove it from the network)

Then try to remove the SQL server.
0
 

Author Comment

by:xpandit
ID: 39835504
hi
I have tied to repair the installation, to no luck. this happened after an upgrade to the SQL installation from 2008SP2 to 2008 R2 which some how left remnants of the original installation behind and continued to upgrade or in this case unsuccessfully removing components before installing new ones.
I could then see a new upgraded instance still holding the same information but not operational.

when running a complete uninstall it then shows 2 installed instances (old and new) which only the new instance can be uninstalled.

I then followed these steps to try remove all instances http://blogs.msdn.com/b/baliles/archive/2012/04/27/how-to-fix-a-failed-sql-2005-2008-r2-or-2012-install-upgrade-mssqlserver-inactive.aspx
which did successfully remove all instances but I still have 2 SQL products in my installed programs.

when I uninstall Microsoft SQL Server 2008 R2 Setup I get the attached warning message
"Warning 26003. Microsoft SQL Server 2008 Setup Support Files cannot be uninstalled because the following products are installed:
SQL Server 2008 SP2 Common Files
SQL Server 2008 SP2 Database Engine Shared"
SQL Warning
0
 

Accepted Solution

by:
xpandit earned 0 total points
ID: 39864793
hi

I managed to resolve issue with these steps:

:
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.      Rename all the SQL Server folders in the computer
7.      Reboot the machine
8.      Install SQL Server 2008 R2 again
0
 

Author Closing Comment

by:xpandit
ID: 39878990
this worked perfectly for me,
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question