Microsoft Knowledge Base Email Alertz

How to uninstall an instance of SQL Server 2005 manually

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 909967 - Last Review: April 30, 2012 - Revision: 11.0

How to manually uninstall an instance of SQL Server 2005

If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for Small Business (http://smallbusiness.support.microsoft.com) site.
Notice
Collapse this imageExpand this image
Important If SQL Server 2005 is running together with an earlier version of SQL Server on the computer, SQL Server Enterprise Manager and other programs that depend on SQL-DMO may be disabled when you uninstall the instance of SQL Server 2005.

This issue may occur in one of the following situations:

  • There are side-by-side installations of SQL Server 2000, SQL Server 2005, and SQL Server 7.0, and someone uninstalls one of the versions.
  • There are side-by-side installations of SQL Server 2000 and SQL Server 2005, and SQL Server 2000 was installed after SQL Server 2005.

This issue occurs because the registration for the SQL Server 2005 SQL-DMO COM library was deleted. To re-enable SQL Server Enterprise Manager and other programs that depend on SQL-DMO, register SQL-DMO, run the following command at a command prompt: regsvr32.exe sqldmo.dll

On This Page

INTRODUCTION

This article describes how to manually uninstall a stand-alone instance of Microsoft SQL Server 2005. Complete the steps in this article only if you cannot uninstall SQL Server 2005 by using Add or Remove Programs. For more information about how to use Add or Remove Programs to uninstall SQL Server 2005, see How to: Uninstall an Existing Instance of SQL Server 2005 (Setup). (http://msdn.microsoft.com/en-us/library/ms143412(v=sql.90).aspx)

When you finish the steps in this article, you can reinstall SQL Server.

MORE INFORMATION

We recommend that you use Add or Remove Programs to uninstall SQL Server 2005. However, if an installation fails or if Add or Remove Programs does not uninstall the instance of SQL Server 2005, follow the steps in this article to uninstall the instance manually.

Collapse this imageExpand this image
Note: If you receive the following error message during the SQL Server 2005 Setup process, a SQL Server 2005 component was not uninstalled from the computer:
A component that you have specified in the ADD_LOCAL property is already installed. To upgrade the existing component, refer to the template.ini and set the UPGRADE property to the name of the component.

Before you uninstall SQL Server 2005

Back up the data

Delete the local security groups

Save or rename the SQL Server Reporting Services folders

Stop all SQL Server services

Use an account that has the required rights

How to uninstall a stand-alone instance of SQL Server 2005 manually

Collapse this imageExpand this image
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756  (http://kbalertz.com/Feedback.aspx?kbNumber=322756/ ) How to back up and restore the registry in Windows

Step 1: Make sure that the Microsoft SQL Server Setup Support Files component is installed

Step 2: Run the command to uninstall the SQL Server components

Step 3: Uninstall the support components

Step 4: Uninstall the Microsoft SQL Server Native Client component

Step 5: Uninstall the Microsoft SQL Server Setup Support Files component

If these steps did not uninstall all the components

Click here to view or hide detailed information

Additional Resources

For more information about how to manually uninstall a SQL Server 2005 failover cluster, see the "How to manually uninstall a SQL Server 2005 failover cluster" topic in SQL Server 2005 Books Online, or see the following article on the MSDN website: http://msdn2.microsoft.com/en-us/library/ms180973(SQL.90).aspx (http://msdn2.microsoft.com/en-us/library/ms180973(SQL.90).aspx)

For more information about how to uninstall an instance of SQL Server 2000 manually, see Microsoft Knowledge Base article 290991  (http://kbalertz.com/Feedback.aspx?kbNumber=290991/ ) How to manually remove SQL Server 2000 default, named, or virtual instance.

APPLIES TO
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Express Edition
Keywords: 
kbsqlsetup kbinfo kbsql2005setup kbexpertiseinter kbexpertiseadvanced kbtshoot kbcip KB909967
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

bd99 - dreyerbernd NOSPAM-AT-NOSPAM h3c.de Reported as Irrelevant  
Written: 5/23/2006 6:53 AM
Hello, I have executed an uninstall tool to remove SQL Server Reporting Services. This tool removed only the SQL Server Reporting Services - msi file from the installer database. SQL Server Reporting Services could not removed in the ordinary way because the file mentioned above is not present. New intallation also fails becaused SQL Server Reporting Services were recognized on the computer. Best Regards Bernd Dreyer

Anonymous User Report As Irrelevant  
Written: 12/15/2008 5:22 AM
Thank so much ur solution very helpfull Santosh Das