How to Install SQL Server Management Studio on your Local Computer (2024)

By: Sergey Gigoyan |Comments (1) | Related: > SQL Server Management Studio


Problem

We are going to illustrate some common tips for working with Microsoft SQL Server ManagementStudio (SSMS) which is the most popular IDE for working with SQL Server databases.So, we are going to start the series of tips from the beginning – installation ofSQL Server Management Studio on the Windows operating system. Usually, SSMS is installed on the same machine (server)where the SQL Server Engine and other features are installed, but sometimes databasedevelopers do not have remote access to the database server and they need SSMS installedlocally and connect to the remote databases. In this article we will show how toinstall SSMS on the local computer and how to connect to the remote SQL Server instances.

Solution

It is possible to install SQL Server Management Studio on local machine withouthaving other SQL Server components. Below we will demonstrate different ways toinstall SSMS step by step on a local machine and how to connect to the remote instance usingSSMS.

Installing SSMS from Microsoft SQL Server installation media

One of the ways to install SSMS is using SQL Server installation disk. Let’sillustrate this process by using SQL Server 2014 as an example. When SQL ServerInstallation Center is opens, choose “Installation” and then choose “New SQL Server stand-alone installation or add features to an existing installation”:

How to Install SQL Server Management Studio on your Local Computer (1)

In the “Setup Role” window choose “SQL Server Feature Installation”to configure the install:

How to Install SQL Server Management Studio on your Local Computer (2)

After clicking “Next” from the features list choose only “ManagementTools - Basic and Management Tools - Complete” as shown below:

How to Install SQL Server Management Studio on your Local Computer (3)

After pressing the “Next” button several times and accepting the licenseterms the “Ready to Install” window appears as shown below in theinstaller:

How to Install SQL Server Management Studio on your Local Computer (4)

There we can see configuration file path. Using this file, we can install SSMSon other machines with the same configuration. Click install and wait for installationto complete. When it is successfully completed, the following window appears:

How to Install SQL Server Management Studio on your Local Computer (5)

After the install, you can click on the Start Menu and find it in the programs list under “MicrosoftSQL Server 2014”:

How to Install SQL Server Management Studio on your Local Computer (6)

Installing Microsoft SQL Server Management Studio from configuration file

In the install example above, the SSMS installation file was createdin file ConfigurationFile.ini. Opening this file, we can see thatonly “SSMS” and “ADV_SSMS” is selected from features list:

How to Install SQL Server Management Studio on your Local Computer (7)

Using this file, we can install SSMS on other computers with the same configurationas it was installed on the original machine. In addition, it is possible to specifynew features to install or remove. To install from the configuration file, we open“cmd.exe” and run the following command:

C:\Users\Administrator>i:\setup.exe /ConfigurationFile="C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20170611_124546/ConfigurationFile.ini" /Q /IAcceptSQLServerLicenseTerms=”True” 

As shown above the SQL Server installation media path and the configuration filepath must be specified. The parameter “Q” means that installationwill be silent, which means that we do not see an installation progress window andwe will not be able to check or uncheck features. When we use silent installationit is important to set IAcceptSQLServerLicenseTerms=”True”.

After pressing “Enter” we will receive the following error: “/UIModesetting cannot be used in conjunction with /Q or /QS.” as shown below:

How to Install SQL Server Management Studio on your Local Computer (8)

This error can be avoided by commenting out the UIMODE=”Normal” stringin the configuration file as shown below:

How to Install SQL Server Management Studio on your Local Computer (9)

Running the command again will start the installation of SSMS, however we willnot be able to see the installation process as we chose the silent installationmode. After installation is finished, SSMS will be installed and in the programslist.

Downloading and installing standalone SSMS

It is also possible to download SSMS separately from SQL Server, in other wordsdownload a standalone version of SSMS. To do this we will use this link:https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms

We can see that SQL Server Management Studio 17.1 is available. Scroll down ifyou want to choose a previous version of SSMS:

How to Install SQL Server Management Studio on your Local Computer (10)

The link for previous releases is:https://docs.microsoft.com/en-us/sql/ssms/previous-sql-server-management-studio-releases

Let’s download and install SSMS 2014 SP1:

How to Install SQL Server Management Studio on your Local Computer (11)

After clicking the SSMS 2014 SP1 download link, the download will begin. Whenthe download completes, we run the “SQLManagementStudio_x86_ENU.exe” toextract the files and then run setup.exe in the extracted files. The SQL ServerInstallation Center opens and we can see that there are only SQL Server Managementfeatures available to install (assuming we are doing this test on a computer whereSSMS is not installed):

How to Install SQL Server Management Studio on your Local Computer (12)

So, from here we will be able to install SSMS like in the previous example.

In addition, when we are installing SSMS from the SQL Server 2016 InstallationCenter there is no SQL Server Management tools in the feature's selection list. Thereare separate options in the SQL Server 2016 Installation Center for management tools– “Install SQL Server Management Tools”. Also, it is possible to have morethan one SSMS version installed on the computer. For example, you can have both– SSMS 2014 and SSMS 2016 on the same machine.

Connecting to the remote instance from SSMS

Now we are going to illustrate how to connect to the remote server using thelocally installed version of SSMS (assuming the remote SQL Server is accessiblefrom the local computer). To connect to the remote instance, we are opening SSMSand in the “Connect to Server” window in the “Server name” fieldwe should enter the remote server details in the following format:

<Remote Server name or IP address> / <Instance Name>, <port>

In the following image, we are going to connect to the remote server’s defaultSQL Server instance with an IP address of ’192.168.56.102’ that will use the defaultSQL Server port of 1433 and use SQL Server authentication:

How to Install SQL Server Management Studio on your Local Computer (13)

After typing the password for the login, we will be successfully connected:

How to Install SQL Server Management Studio on your Local Computer (14)

If the server had a different port number such as 2040, we would connect as followsusing the port number in the Server Name field.

How to Install SQL Server Management Studio on your Local Computer (15)

Conclusion

As we can see it is possible to install only SQL Server Management Studio ona local machine (without installing the SQL Server database engine and its othercomponents) and connect using SSMS to a remote SQL Server instance. Installationof SSMS is possible from the SQL Server Installation Center and it is possible todownload and install only SSMS. Like other SQL Server features it is possible toinstall SSMS using a configuration file from the command line.

Next Steps

Check out this related information:




About the author

Sergey Gigoyan is a database professional with more than 10 years of experience, with a focus on database design, development, performance tuning, optimization, high availability, BI and DW design.

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips

How to Install SQL Server Management Studio on your Local Computer (2024)
Top Articles
Latest Posts
Article information

Author: Pres. Lawanda Wiegand

Last Updated:

Views: 5502

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Pres. Lawanda Wiegand

Birthday: 1993-01-10

Address: Suite 391 6963 Ullrich Shore, Bellefort, WI 01350-7893

Phone: +6806610432415

Job: Dynamic Manufacturing Assistant

Hobby: amateur radio, Taekwondo, Wood carving, Parkour, Skateboarding, Running, Rafting

Introduction: My name is Pres. Lawanda Wiegand, I am a inquisitive, helpful, glamorous, cheerful, open, clever, innocent person who loves writing and wants to share my knowledge and understanding with you.