Monday, August 26, 2019

How to work with Registered Servers in SQL Server Management Studio

Using Registered Servers in SQL Server Management Studio (SSMS)

SQL Server Management Studio (SSMS) offers a powerful feature called Registered Servers, which allows users to easily manage and connect to multiple SQL Server instances. This feature is especially useful for database administrators who frequently work with several servers and want to streamline query execution across them.

How to Access Registered Servers

To open the Registered Servers window in SSMS, follow one of the methods below:

  • Navigate to View > Registered Servers from the main menu.
  • Use the keyboard shortcut Ctrl + Alt + G.
Registered server window in SSMS Registered Servers window in SSMS

Creating a New Server Group

You can organize your servers into custom groups for better manageability. To create a new server group:

  • Right-click on Local Server Groups within the Registered Servers window.
  • Choose New Server Group and provide a meaningful name.
Add new server group in SSMS Creating a new server group in SSMS

Registering a New Server

To register a new server:

  1. Right-click on the desired server group and select New Server Registration.
  2. Enter the Server Name, choose the Authentication Type, and provide credentials if needed.
  3. You also have the option to save the login information.
Add new server in SSMS Registering a new server with credentials

Additional Connection Properties

While registering a server, you can configure additional properties such as:

  • Default database
  • Connection color for easy visual identification
Additional properties in SSMS Setting default database and connection color

Context Menu Options

By right-clicking on a registered server or group, you’ll find several useful options like:

  • Connecting to the server
  • Editing server registration
  • Deleting or exporting registrations
Registered Servers context menu Context menu options in the Registered Servers window

Executing Queries Across Multiple Servers

One of the key benefits of using Registered Servers is the ability to run the same query across multiple servers simultaneously. This is ideal for monitoring, health checks, or executing standard configurations across environments.


Further Reading:
To explore more about Registered Servers, visit the official Microsoft documentation:
Register Servers - SSMS | Microsoft Docs

Popular Posts