TargetServerGroup.AddMemberServer 메서드
Assigns target server group membership to the specified target server.
네임스페이스: Microsoft.SqlServer.Management.Smo.Agent
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Sub AddMemberServer ( _
srvname As String _
)
‘사용 방법
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
)
매개 변수
- srvname
유형: System.String
A String value that specifies the target server to be removed from the target server group.
주의
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.
예
SQL Server 에이전트에서 자동 관리 태스크 예약
참고 항목
참조
Microsoft.SqlServer.Management.Smo.Agent 네임스페이스