Méthode TargetServerGroup.AddMemberServer
Assigns target server group membership to the specified target server.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub AddMemberServer ( _
srvname As String _
)
'Utilisation
Dim instance As TargetServerGroup
Dim srvname As String
instance.AddMemberServer(srvname)
public void AddMemberServer(
string srvname
)
public:
void AddMemberServer(
String^ srvname
)
member AddMemberServer :
srvname:string -> unit
public function AddMemberServer(
srvname : String
)
Paramètres
- srvname
Type : System.String
A String value that specifies the target server to be removed from the target server group.
Notes
Use the AddMemberServer and RemoveMemberServer methods to configure multi-server administration target server groups. A target server can be a member of no group or a member of multiple groups.
Exemples
Planification des tâches administratives automatiques dans l'Agent SQL Server
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo.Agent