Solved

Uninstall SQL 2008 R2

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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