Back

Manual Uninstall of SQL 2005 Server or Express with Reports

I had issues uninstalling the 32 bit SQL 2005 Express and SQL 2005 Standard from a customers machine running Windows 2003 64bit This was due to Sys...

3 min read
Published on Mar 4, 2008
manual-uninstall-of-sql-2005-32bit-64bit-sql-server-or-express-including-reporting-services

I had issues uninstalling the 32 bit SQL 2005 Express and SQL 2005 Standard from a customers machine running Windows 2003 64bit.   This was due to Systems Center Essentials requirement of having a 64 bit SQL when running on a 64 bit box with registry redirection.

The server ha two previous versions of the 32 bit reporting services (SQL and SQL Express)…and even after a complete uninstall, I could not reinstall SQL 2005 x64 bit and have function properly.  I received errors after the 64 bit install on the Configuration Tools > Reporting Services Configuration (WMI Error 80040219).  Also, when connecting to the reporting instance through SQL 2005 Management Studio (Could not complete operation, WinMgmt). When I tried to reinstall SQL using the default instance, I received an error that the default instance was installed, even when I removed everything (add/remove programs, SQL services, program files).

So, even after I thought I had removed all of the 32 bit SQL services on the machine, I kept having errors with 64 bit reporting services not being able to be configured. It was because the instance name still existed in the redirected 32 bit node of the registry (WOW6432node)

The quick fix to this problem was to delete the old 32 bit SQL configuration that was preventing the 64 bit version of reporting services from working from:

HKEY_LOCAL_MACHINESOFTWAREWOW6432nodeMicrosoftMicrosoft SQL Server

Note - That will destroy any 32 bit SQL running on your 64 bit box…please make sure the services are deleted as detailed below.

Uninstalling SQL 2005 Manually

First, here are the recommended steps to manually uninstall SQL 2005:

http://support.microsoft.com/kb/909967

If that doesn’t work, this is how you can manually uninstall all versions of SQL 2005 so that SQL can be reinstalled:

Note - This method will delete all databases and configuration, you must have a backup of your existing SQL databases (which this uninstall will delete) before proceeding. (Again, this is not supported, please call Microsoft PSS for supported methods)

  • Uninstall all SQL components possible in Add/Remove Programs (including the SQL client and VSS writer)
  • Stop all SQL Services and configure them to disabled using Start > SQL Configuration Manager
  • Delete the following registry to get rid of the services.  If you have multiple instance installed, it will be Keyname$Instance (i.e. MSSQLServer$OFFICESERVERS)

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMSSQLServer HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSQLServerAgent HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMSSQLServerADHelper HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesReportServer Verify that the services do not exist in the SQL Configuration Manager. Delete the SQL Configuration in the registry

  1. HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSSQLServer
  2. HKEY_LOCAL_MACHINESoftwareMicrosoftMicrosoft SQL Server
  3. Note - if you installed a 32 bit version of SQL on 64 bit version of Windows, you will need to also delete them from the 32 bit registry node that is redirected. More Info MS 896459. * HKEY_LOCAL_MACHINESOFTWAREWOW6432nodeMicrosoftMSSQLServer * HKEY_LOCAL_MACHINESOFTWAREWOW6432nodeMicrosoftMicrosoft SQL Server

Delete the SQL Program files - Note this will also delete the existing databases on the system that must be restored from backup.

    1. Delete the directory: C
      FilesMicrosoft SQL Server Note - if you installed a 32 bit version of SQL on 64 bit version of Windows, you will need to also delete them from the 32 bit program files: C
      Files (x86)Microsoft SQL Server
    2. You might need to reboot to close all files before you can delete the directory.

Now you can reinstall a clean 32 bit or 64 bit SQL without errors. Please let me know how it works… Please check us out for your Managed Service or Cloud Consulting needs.

This post has matured and its content may no longer be relevant beyond historical reference. To see the most current information on a given topic, click on the associated category or tag.

Related Posts

Screen Capture Protection in Windows 365

How to Enable Screen Capture Protection in Windows 365 for Enhanced Security

Learn how to enable and use screen capture protection in Windows 365 to secure sensitive information and prevent unauthorized captures, enhancing your organization's data security.

Jan 21, 2025
7 min read
Office 365 Collaboration Tools

Office 365 Collaboration Tools: Are They Right for Your Organization?

Explore how Office 365's collaboration tools can enhance your organization's productivity and security.

Jan 12, 2025
6 min read
NIST 800 171 vs NIST 800 53

NSA Cybersecurity Collaboration: No-Cost Services Available to DoD Contractors

Learn how NSA cybersecurity collaboration provides no-cost services to DoD contractors, helping enhance security and compliance with advanced cyber protections.

Jan 10, 2025
6 min read
When is a New CMMC Assessment Needed

Understanding When and Why You Need a New CMMC Assessment

Learn when to schedule a new CMMC assessment, what triggers reassessments, and how changes in scope, contracts, or compliance impact your certification process.

Jan 6, 2025
9 min read
How Does VDI Solve the CU./I and CMMC Conundrum?

How Does VDI Solve the CUI and CMMC Conundrum?

Explore how VDI for CUI helps businesses meet compliance requirements, ensuring secure data access while simplifying CMMC certification.

Dec 30, 2024
9 min read
Disaster Recovery Plan Enough

Is your disaster recovery plan enough?

Strengthen your Office 365 disaster recovery plan with granular backup, retention policies, and solutions to prevent data loss.

Dec 18, 2024
7 min read

Ready to Defend and Secure Your Data
So Your Business Can Thrive?

Fill out the form to see how we can protect your data and help your business grow.

Loading...
Secure. Defend. Thrive.

Let's start a conversation

Discover more about Agile IT's range of services by reaching out.

Don't want to wait for us to get back to you?

Schedule a Free Consultation

Location

Agile IT Headquarters
4660 La Jolla Village Drive #100
San Diego, CA 92122

Secure. Defend. Thrive.

Don't want to wait for us to get back to you?

Discover more about Agile IT's range of services by reaching out

Schedule a Free Consultation