Export (0) Print
Expand All
Expand Minimize

sp_delete_targetsvrgrp_member

SQL Server 2000

Removes a target server from a target server group.

Syntax

sp_delete_targetsvrgrp_member [ @group_name = ] 'group_name' ,
    
[ server_name = ] 'server_name'

Arguments

[@group_name =] 'group_name'

Is the name of the group. group_name is sysname, with no default.

[@server_name =] 'server_name'

Is the name of the server to remove from the specified group. server_name is nvarchar(30), with no default.

Return Code Values

0 (success) or 1 (failure)

Result Sets

None

Permissions

Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_delete_targetsvrgrp_member.

Examples

This example removes the server LONDON1 from the Servers Maintaining Customer Information group.

USE msdb
EXEC sp_delete_targetsvrgrp_member 
   @group_name = N'Servers Maintaining Customer Information',
   @server_name = N'LONDON1'

See Also

sp_add_targetsvrgrp_member

System Stored Procedures

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft