Uninstall and Remove Multiple Database Instances of Microsoft SQL Server 2005

When database system administrator installs Microsoft SQL Server 2005 and creates a few database engine instances, there will be problem and hard time to remove and uninstall these multiple database instance components and the corresponding SQL Server services. When users try to uninstall Microsoft SQL Server 2005 or remove database instance components using Add and Remove Programs or Uninstall or change a programs (Vista) in Control Panel, only one SQL Server 2005 database engine can be selected. After uninstallation has completed, when users attempt to run the SQL Server 2K5 Uninstall to completely clean remove any other instances or components, the action will fail with error message saying the uninstaller shortcut entry is invalid and asked if you want to remove the link.

When you run Add and Remove Programs or Programs and Features (for Windows Vista) in Control Panel, it actually executes the ARPWrapper.exe program that is installed by Microsoft SQL Server Setup Support Files component by using the /Remove option. However, when ARPWrapper.exe completes its removal task, the program also uninstall Microsoft SQL Server Setup Support Files component and hence removes itself or deletes the reference to the ARPWrapper.exe program. This is the cause that prevents administrators to run the uninstaller again to remove database instances or uninstall SQL Server 2005.

The resolution to remove multiple database engine instances from Microsoft SQL Server 2005 is to install ARPWrapper.exe again after removing each components. The following guide provides step-by-step instructions on how to uninstall stand-alone or multiple instance of SQL Server 2005 manually.

  1. Login to the server with an administrator user account, or SQL Server 2005 service account.
  2. Stop all active SQL Server services in Services applet in Control Panel as any active connections may prevent the uninstallation process from finishing successfully.
  3. Go to Control Panel and then Add or Remove Programs applet.
  4. Search and verify that Microsoft SQL Server Setup Support Files appears in the list of installed programs. If it’s found, proceed to next step. If Microsoft SQL Server Setup Support Files component is not listed as one of the installed program, install the component by running sqlsupport.msi file locates in Servers\setup\ folder of the original SQL Server 2005 installation media, or disc, folder and USB flash drive that contains SQL Server 2005 setup files.
  5. Open command prompt (in Vista, use command prompt with administrator rights), and run the following command to uninstall the SQL Server components:

    %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\ARPWrapper.exe /Remove

  6. Uninstall the SQL Server instance components such as database engine one at a time.

    Uninstall SQL Server 2005 Components

  7. Once the removal completes, repeat all of the above steps again until all the SQL Server components are uninstalled.
  8. Finally, uninstall the Microsoft SQL Server Setup Support Files component by using Add or Remove Programs (It should has been removed, but double check to ensure that).

Above guide assumes that you didn’t encounter any other problems, and simply want to get rid of all DB instances of the SQL Server 2005. If you have other issues, refer to KB909906 on how to manually uninstall SQL Server.


3 Responses to “Uninstall and Remove Multiple Database Instances of Microsoft SQL Server 2005”

  1. Prax
    October 28th, 2009 15:55
    3

    That was a great help. Excellent. Thank you very much.

  2. Sherri
    April 24th, 2009 03:37
    2

    Will this work if you want to leave one instance fully functioning still?

  3. david
    September 26th, 2008 08:19
    1

    You are a SQL God!
    Thank you so very much. Much Doco talks about how to manually remove a standalone instance but not luck in uninstalling multiple instances.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

remove sql instance - uninstall sql server 2005 - remove SQL Server instance - TITLE: Microsoft SQL Server 2005 Setup - delete sql server instance - sql server 2005 uninstall - how to uninstall sql server 2005 - how to remove sql server instance - remove sql server - sql server removal tool - uninstall sql express instance - deleting sql database - remove sql server 2005 - removing sql server 2005 - remove sql services - uninstall sql instance - delete sql database - how to remove an sql instance - remove sql database - Remove SQL 2005 INstance - TITLE: Microsoft SQL Server Setup - uninstall microsoft sql server - sql removal tool - microsoft sql uninstall - removing sql instance - can i delete sql services - delete mssql database - remove sql server 2005 from vista - remove sql server instances - sql uninstaller - sql express delete database - Uninstall SQLSERVER 2003 Instance - remove sql instances - uninstalling sql server 2005 - arpwrapper.exe - delete instance sql 2005 - how to remove sql express instance - how to uninstall mssql - delete sql instance - how to remove sql server - how to uninstall microsoft sql server 2005 - removing sql service MS XP - sql express remove instance - uninstall mssql - clean uninstall sql server 2005 - delete database sql server 2005 - delete sql service - delete sql express instance - drop database sql server 2005 - how to uninstall sql instance -