Solved

Uninstall SQL 2008 R2

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this article I will describe the Detach & Attach 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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now