ReplicationServer.InstallDistributor Method (String, SecureString)
Registers a remote Distributor, where the password is specified using a SecureString object.
네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
구문
‘선언
Public Sub InstallDistributor ( _
distributionServerName As String, _
password As SecureString _
)
public void InstallDistributor (
string distributionServerName,
SecureString password
)
public:
void InstallDistributor (
String^ distributionServerName,
SecureString^ password
)
public void InstallDistributor (
String distributionServerName,
SecureString password
)
public function InstallDistributor (
distributionServerName : String,
password : SecureString
)
매개 변수
- distributionServerName
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.
- password
A SecureString value that specifies the password. This is the same value used when calling InstallDistributor at the Distributor.
주의
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,SecureString), you must have called InstallDistributor(SecureString,DistributionDatabase) at the Distributor.
The InstallDistributor(String,SecureString) method provides additional security for the password while it is stored in memory and should be used instead of InstallDistributor(String,String).
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.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
ReplicationServer Class
ReplicationServer Members
Microsoft.SqlServer.Replication Namespace