Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Uninstall SQL 2008 R2

Posted on 2014-01-30
4
Medium Priority
?
2,465 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
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 …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

877 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