The TargetServerGroup object exposes the attributes of a multiserver administration target identification shortcut.
With Microsoft® SQL Server™ version 7.0, SQL Server Agent provides multiserver administration. The SQL Server Agent of one server running SQL Server can direct job execution to another target server. Servers can enlist in the domain specified by a master SQL Server Agent. When a server enlists in a domain, it becomes a target server for job execution managed by the master SQL Server Agent.
The master SQL Server Agent allows group definition for its target servers. When target servers are grouped, jobs created on the master server can identify the group as an execution target. The job is executed on each target server in the group.
Target server groups are defined only on a master SQL Server Agent, and the TargetServerGroups collection and each TargetServerGroup object are populated only when SQL-DMO applications connect to a server running SQL Server identified as the master in a multiserver administration group.
With the TargetServerGroup object, you can:
The Name property of the TargetServerGroup object can contain up to 100 characters.
AddMemberServer Method | ListMemberServers Method |
BeginAlter Method | Refresh Method |
CancelAlter Method | Remove Method (Objects) |
DoAlter Method | RemoveMemberServer Method |
GroupID Property | Name Property |