8 Registered Servers

 

Our favorite way to organize servers within a SQL Server estate is by using Registered Servers, which were first introduced in SQL Server 2005. Registered Servers support SQL Server 2000 and above and can support the Database Engine, Analysis Services, Integration Services, and Reporting Services. We prefer to use this feature as a simplified inventory tool for the Database Engine.

"Registered Servers" is the overarching name for three different types of repositories that store server connection information and enable multi-server queries. dbatools supports all three types of repositories.

  • Local Server Groups
  • Azure Data Studio
  • Central Management Studio

Azure Data Studio is a new addition which was introduced in SQL Server Management Studio 18, and only appears when Azure Data Studio is installed on the computer running SSMS.

If you aren’t familiar with Registered Servers, you can take a look by opening SQL Server Management Studio, then clicking on View → Registered Servers. Figure 8.1 shows an example of what this window looks like in our environments.

Figure 8.1. Registered Servers in Management Studio 18
cms

Imagine being able to select all servers or just a specific group and running one query or command against all of them. This is useful on a day-to-day basis, but it can be a lifesaver during audits which require DBAs to prove their systems are secure by running pre-built queries in front of an auditor!

8.1  Local Server Groups

 
 

8.1.1  Version-specific RegSrvr.xml files

 
 
 

8.2  Azure Data Studio

 
 
 

8.3  Central Management Server

 
 
 

8.4  Inventory Organization

 

8.4.1  Importing advanced environment folder structures

 
 
 

8.5  Further Integration

 
 

8.5.1  Add New Registered Servers

 
 
 
 

8.5.2  Copy, Export, Import

 

8.5.3  Move Registered Servers

 

8.5.4  Remove Registered Servers

 
 
 
 

8.6  Registered Server Groups

 
 

8.7  Hands On Lab

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest