ReplicationServer.InstallDistributor 메서드 (String, String)

Registers a remote Distributor.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

구문

‘선언
Public Sub InstallDistributor ( _
    distributionServerName As String, _
    password As String _
)
‘사용 방법
Dim instance As ReplicationServer 
Dim distributionServerName As String 
Dim password As String

instance.InstallDistributor(distributionServerName, _
    password)
public void InstallDistributor(
    string distributionServerName,
    string password
)
public:
void InstallDistributor(
    String^ distributionServerName, 
    String^ password
)
member InstallDistributor : 
        distributionServerName:string * 
        password:string -> unit
public function InstallDistributor(
    distributionServerName : String, 
    password : String
)

매개 변수

  • distributionServerName
    유형: System.String
    A String value that specifies the name of the remote server to be used as the Distributor for the current Publisher server. The distribution server name cannot be the same as the current server.

주의

This method must be called from a Publisher to register the remote Distributor. If the Publisher and Distributor are on the same server, you should not call this method.

Before calling InstallDistributor(String, String), you must have called InstallDistributor(String, DistributionDatabase) at the Distributor.

The InstallDistributor method can only be called by a member of the sysadmin fixed server role.

The InstallDistributor method is equivalent to executing the sp_adddistributor(Transact-SQL) stored procedure at the Publisher to register a remote Distributor.

참고 항목

참조

ReplicationServer 클래스

InstallDistributor 오버로드

Microsoft.SqlServer.Replication 네임스페이스