Solved

Uninstall SQL 2008 R2

Posted on 2014-01-30
4
1,942 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

626 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