Skip to content

Latest commit

 

History

History
110 lines (66 loc) · 7.79 KB

File metadata and controls

110 lines (66 loc) · 7.79 KB
title Uninstall an Existing Instance of SQL Server (Setup) | Microsoft Docs
ms.custom
ms.date 01/27/2017
ms.prod sql
ms.reviewer
ms.suite sql
ms.technology install
ms.tgt_pltfrm
ms.topic conceptual
helpviewer_keywords
removing instances of SQL Server
uninstalling instances of SQL Server
removing SQL Server
instances of SQL Server, uninstalling
uninstalling SQL Server
ms.assetid 3c64b29d-61d7-4b86-961c-0de62261c6a1
author MashaMSFT
ms.author mathoma
manager craigg

Uninstall an Existing Instance of SQL Server (Setup)

[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md-winonly]

For content related to previous versions of SQL Server, see Uninstall an Existing Instance of SQL Server (Setup).

This article describes how to uninstall a stand-alone instance of [!INCLUDEssNoVersion]. By following the steps in this article, you also prepare the system so that you can reinstall [!INCLUDEssNoVersion].

IMPORTANT! To uninstall an instance of [!INCLUDEssNoVersion], you must be a local administrator with permission to log on as a service.

NOTE: To uninstall a [!INCLUDEssNoVersion] failover cluster, use the Remove Node functionality provided by [!INCLUDEssNoVersion] Setup to remove each node individually. For more information, see Add or Remove Nodes in a SQL Server Failover Cluster (Setup)

Note the following important scenarios before you uninstall [!INCLUDEssNoVersion]:

  • Before you remove [!INCLUDEssNoVersion] components from a computer that has the minimum required amount of physical memory, make sure that the page file size is sufficient. The page file size must be equal to two times the amount of physical memory. Insufficient virtual memory can cause an incomplete removal of [!INCLUDEssNoVersion].

  • If you have multiple instances of [!INCLUDEssNoVersion], the [!INCLUDEssNoVersion] Browser uninstalls automatically when the last instance of [!INCLUDEssCurrent] is uninstalled.

    If you want to uninstall all components of [!INCLUDEssCurrent], you must uninstall the [!INCLUDEssNoVersion] Browser component manually from Programs and Features in Control Panel.

  1. Uninstalling [!INCLUDEssNoVersion] deletes tempdb data files that were added during the install process. Files with tempdb_mssql_*.ndf name pattern are deleted if they exist in the system database directory.

Before You Uninstall

  1. Back up your data. Although this is not a required step, you might have databases that you want to save in their present state. You might also want to save changes that were made to the system databases. If either situation is true, make sure that back up the data before you uninstall [!INCLUDEssNoVersion]. Alternatively, save a copy of all the data and log files in a folder other than the MSSQL folder. The MSSQL folder is deleted during uninstallation.

    The files that you must save include the following database files:

    • Master.mdf

    • Mastlog.ldf

    • Model.mdf

    • Modellog.ldf

    • Msdbdata.mdf

    • Msdblog.ldf

    • Mssqlsystemresource.mdf

    • Mssqlsustemresource.ldf

    • Tempdb.mdf

    • Templog.ldf

    • ReportServer[$InstanceName] This is the [!INCLUDEssRSnoversion] default database.

    • ReportServer[$InstanceName]TempDB This is the [!INCLUDEssRSnoversion] default temporary database.

  2. Delete the local security groups. Before you uninstall [!INCLUDEssNoVersion], delete the local security groups for [!INCLUDEssNoVersion] components.

  3. Stop all [!INCLUDEssNoVersion] services. We recommend that you stop all [!INCLUDEssNoVersion] services before you uninstall [!INCLUDEssNoVersion] components. Active connections can prevent successful uninstallation.

  4. Use an account that has the appropriate permissions. Log on to the server by using the [!INCLUDEssNoVersion] service account or by using an account that has equivalent permissions. For example, you can log on to the server by using an account that is a member of the local Administrators group.

To Uninstall an Instance of [!INCLUDEssNoVersion]

  1. To begin the uninstall process, go to Control Panel and then Programs and Features.

  2. Right click SQL Server 2016 and select Uninstall. Then click Remove. This starts the [!INCLUDEssNoVersion] Installation Wizard.

    Setup Support Rules runs to verify your computer configuration. To continue, click Next.

  3. On the Select Instance page, use the drop-down box to specify an instance of [!INCLUDEssNoVersion] to remove, or specify the option to remove only the [!INCLUDEssNoVersion] shared features and management tools. To continue, click Next.

  4. On the Select Features page, specify the features to remove from the specified instance of [!INCLUDEssNoVersion].

    Removal rules runs to verify that the operation can complete successfully.

  5. On the Ready to Remove page, review the list of components and features that will be uninstalled. Click Remove to begin uninstalling

  6. Immediately after you uninstall the last [!INCLUDEssNoVersion] instance, the other programs associated with [!INCLUDEssNoVersion] will still be visible in the list of programs in Programs and Features. However, if you close Programs and Features, the next time you open Programs and Features, it will refresh the list of programs, to show only the ones that are actually still installed.

If the Uninstallation Fails

  1. If the uninstallation process does not complete successfully, attempt to fix the problem that caused the uninstallation to fail. The following articles can help you understand the cause of the failed uninstallation:

  2. If you are unable to fix the cause of the uninstallation failure, you can contact [!INCLUDEmsCoName] Support. In some cases, such as unintentional deletion of important files, reinstalling the operating system may be required before reinstalling [!INCLUDEssNoVersion] on the computer.

See Also

View and Read SQL Server Setup Log Files