ID do artigo: 909967 - Exibir os produtos aos quais esse artigo se aplica.
This article describes how to uninstall a stand-alone instance of Microsoft SQL Server 2005 manually. If you follow the steps in this article, you prepare the system so that you can reinstall SQL Server.
For more information about how to uninstall a SQL Server 2005 failover cluster manually, see the "How to manually uninstall a SQL Server 2005 failover cluster" topic in SQL Server 2005 Books Online, or visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms180973(SQL.90).aspxFor more information about how to uninstall an instance of SQL Server 2000 manually, click the following article number to view the article in the Microsoft Knowledge Base:
290991Important On a computer that is running SQL Server 2005 together with earlier versions of SQL Server, SQL Server Enterprise Manager and other programs that depend on SQL-DMO may be disabled when you uninstall the instance of SQL Server 2005.
(http://support.microsoft.com/kb/290991/ )How to manually remove SQL Server 2000 default, named, or virtual instance
This issue may occur when you have side-by-side installations of SQL Server 2005, SQL Server 2000, and SQL Server 7.0 and when you uninstall any one of the versions. This issue may also occur when you have side-by-side installations of SQL Server 2000 and SQL Server 2005 and when you installed SQL Server 2000 after you installed 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. To do this, run the following command at a command prompt:
We recommend that you use Add or Remove Programs to uninstall SQL Server 2005. For more information, visit the following Microsoft Website:
How to: Uninstall an Existing Instance of SQL Server 2005 (Setup)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.
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 dataYou may have databases that you want to save in the present state. You may also want to save changes that were made to the default databases. If either case is true, make sure that you have a good backup of the data before you follow the steps in this article. Alternatively, save a copy of all the data and of all the log files. Save these copies in a folder other than the MSSQL folder. The MSSQL folder is deleted as part of the uninstallation process.
The files that you must save include the following database files. These files are installed as part of SQL Server 2005:
Delete the local security groupsAs part of the uninstallation process, delete the local security groups for the SQL Server 2005 components. For more information, see the "Setting up Windows service accounts" topic in SQL Server 2005 Books Online, or visit the following MSDN Web site:
Save or rename the SQL Server Reporting Services foldersIf you use the SQL Server installation together with SQL Server Reporting Services, save or rename the following folders and subfolders:
Stop all SQL Server servicesWe recommend that you stop all SQL Server services before you uninstall the SQL Server 2005 components. Active connections may prevent the uninstallation process from finishing successfully.
Use an account that has the required rightsLog on to the server by using the SQL Server 2005 service account or by using an account that has equivalent rights. For example, log on to the server by using an account that is a member of the local Administrators group.
How to uninstall a stand-alone instance of SQL Server 2005 manuallyImportant 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:
(http://support.microsoft.com/kb/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 installedIn Add or Remove Programs, make sure that Microsoft SQL Server Setup Support Files appears in the list of installed programs. If Microsoft SQL Server Setup Support Files appears in the list, go to the "Step 2: Run the command to uninstall the SQL Server components" section.
If Microsoft SQL Server Setup Support Files does not appear in the list, install this component before you continue. To install this component, follow these steps:
Step 2: Run the command to uninstall the SQL Server componentsAt a command prompt, run the following command:
"%ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\ARPWrapper.exe /Remove"Uninstall the SQL Server components one at a time until all the SQL Server components are uninstalled.
Note Add or Remove Programs also runs the ARPWrapper.exe program by using the /Remove option. However, the reference to the ARPWrapper.exe program may have been deleted.
If you have uninstalled SQL Server Reporting Services, you must perform the following tasks:
Error message you may receive during this stepClick here to view or hide detailed information
Step 3: Uninstall the support componentsUse Add or Remove Programs to uninstall the support components in the following order:
If you receive this error message, follow these steps:
Setup failed due to missing prerequisites
Step 4: Uninstall the Microsoft SQL Server Native Client componentIf all the other steps were successful, uninstall the Microsoft SQL Server Native Client component by using Add or Remove Programs.
Note Do not uninstall the Microsoft SQL Server Native Client component if you have SQL Server 2000 components installed.
Step 5: Uninstall the Microsoft SQL Server Setup Support Files componentIf all the other steps were successful, uninstall the Microsoft SQL Server Setup Support Files component by using Add or Remove Programs.
If these steps did not uninstall all the componentsClick here to view or hide detailed information
ID do artigo: 909967 - Última revisão: terça-feira, 16 de julho de 2013 - Revisão: 3.1
A informação contida neste artigo aplica-se a: