Uninstall 2nd unused SQL Server instance ?

techresearch7777777 1,766 Reputation points
2021-04-08T15:17:08.847+00:00

Hello, noticed we have an active server that two SQL Server instances (default MSSQLSERVER & SQLDEV) installed.

Default MSSQLSERVER is being used and the other SQLDEV is not...is in the Stop state.

We would like to uninstalled the unused SQLDEV instance and was wondering if it's possible, steps to take, and concerns to be aware of any impacts that might affect the other current active instance default MSSQLSERVER.

Thanks in advance.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,638 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Michael Taylor 47,711 Reputation points
    2021-04-08T15:32:02.59+00:00

    Yes you can uninstall the unused instance and it is a good idea to do so. When you install SQL it installs a set of shared components and the SQL instance specific components. When you run the installer again choose the Remove option and it'll ask if you want to remove shared components or a specific instance. Select the instance you want to remove and then it'll give you the option to remove the particular features of the instance (DB, SSRS, etc). If you want to completely remove the instance then ensure all the features are selected for the instance (IIRC there is a button for that). It'll then remove the instance and related services but any remaining instances and the shared components will remain.

    Note that it will not delete data files and whatnot so after the uninstall is complete you will still likely have some folders with the instance name in them. If you don't need them then you can remove them manually.

    1 person found this answer helpful.
    0 comments No comments

  2. techresearch7777777 1,766 Reputation points
    2021-04-08T22:05:59.377+00:00

    Thanks cooldadtx for your reply.

    Currently the 2nd instance is in the Stopped state so is it ok to uninstall in this state?

    Also will it affect the main 1st MSSQLSERVER default live instance...i.e. downtime/inaccessible, slow performance, Blocking, etc... ?


  3. Cris Zhan-MSFT 6,601 Reputation points
    2021-04-09T02:40:01.457+00:00

    Hi @techresearch7777777 ,

    When uninstalling this unused SQL Server instance you only need to select the instance features such as the database engine services and replication, and do not select other shared features, It will not affect other instances. The Memory, CPU, and Disk utilization will increase temporarily when the instance is uninstalled(or install), but the impact is small.

    It is best practice to stop the SQL Server services before uninstalling the SQL Server instance.

    I tested uninstalling some SQL Server instances(2017 and 2019)with the SQL Server installation wizard(Setup), the default folder selected during the installation of these instances will still be saved ( For example, C:\Program Files\Microsoft SQL Server\MSSQL15.SQLEXPRESS), but the data files of the system database will be cleared and the user (or distribution) databases will not.
    So if necessary, please back up the system databases on the instance.
    https://learn.microsoft.com/en-us/sql/sql-server/install/uninstall-an-existing-instance-of-sql-server-setup?view=sql-server-ver15&tabs=Windows10

    0 comments No comments