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.

New Articles

Incoming Search Terms for the Article

uninstall sql server 2005 - sql server 2005 uninstall - TITLE: Microsoft SQL Server 2005 Setup - remove sql server 2005 express instance - remove sql instance - how to uninstall sql server 2005 - remove sql database - remove sql server - SQL removal tool - remove sql 2005 instance - remove sql server instance - remove sql server 2005 - remove sql express instance - uninstall sql server instance - uninstall instance of sql server 2005 - TITLE: Microsoft SQL Server Setup - how to delete sql instance - delete sql service - how to remove sql instance - remove sql server instances - sql server uninstall tool - delete sql server instance - remove sql 2005 express instance - all - sql server 2005 delete instance - how to clean sql database - removing sql server instance - uninstalling sql server 2005 - uninstall sql server 2005 instance - how to uninstall microsoft sql server 2005 - remove sql database instance - remove sql manually - remove sql server express instance - remove sql server instance 2008 - sql 2008 remove instance - sqlsupport.msi download - arpwrapper.exe - completely remove sql from server - how to delete sql server instance - sql server 2008 remove instance - sql server 2003 uninstall - arpwrapper.exe download - sql server uninstaller - SQL REMOVE INSTANCE - remove sql express 2005 instance - sql express 2005 remove instance - sql server 2005 removal tool - DELETE INSTANCE MSSQL - delete MSsql instance - manually uninstall sql 2005 instance -