This topic describes how to specify the location of a target server in a multiserver administration configuration in SQL Server by using SQL Server Management Studio or Transact-SQL.
Before You Begin
Limitations and Restrictions
Performing this action edits the registry. Manual editing of the registry is not recommended because inappropriate or incorrect changes can cause serious configuration problems for your system. Therefore, only experienced users should use the Registry Editor program to edit the registry. For more information, see the Microsoft Windows documentation.
Security
Permissions
Requires membership in the sysadmin fixed server role.
Using SQL Server Management Studio
To specify a target server's location
In Object Explorer, click the plus sign to expand the master server on which you want to specify a target server's location.
Right-click SQL Server Agent, point to Multi Server Administration, and select Manage Target Servers.
Right-click a target server and select Properties.
In the Location box, enter a location for the server, and then click OK.
Using Transact-SQL
To specify a target server's location
In Object Explorer, connect to an instance of Database Engine.
On the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
USE msdb ;
GO
-- enlists the current server into the AdventureWorks1 master server.
-- The location for the current server is Building 21, Room 309, Rack 5
EXEC dbo.sp_msx_enlist N'AdventureWorks2022',
N'Building 21, Room 309, Rack 5' ;
GO
Do you want to learn how to set up multiple locations for a company in Business Central? This module focuses on how to configure a centralized distribution strategy.
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Learn about the Log On tab of the Unknown Service Properties dialog box in SQL Server. See how to use it to specify an account and to start or stop the service.