ReplicationServer.InstallDistributor 메서드 (SecureString, DistributionDatabase)

Installs a Distributor on the currently connected instance of Microsoft SQL Server, where the password is specified using a SecureString object.

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

public void InstallDistributor(
	SecureString password,
	DistributionDatabase distributionDB
)

매개 변수

password
유형: System.Security.SecureString
Is a SecureString value representing the password of the distributor_admin login used to access the Distributor. Security Note   When possible, prompt users to enter security credentials at run time. If you must store credentials, use the http://go.microsoft.com/fwlink/?LinkId=34733 cryptographic services provided by the Windows .NET Framework.
distributionDB
유형: Microsoft.SqlServer.Replication.DistributionDatabase
A DistributionDatabase object representing the distribution database used by the Distributor.

You must specify a strong password for password when the Distributor has remote Publishers. If password is set to null, a random password is generated, and you must call ChangeDistributorPassword to reset the password when the first remote Publisher is registered at the Distributor.

This method overload must be called at the Distributor before calling InstallDistributor(String, String) from a remote server.

The InstallDistributor(SecureString, DistributionDatabase) method provides additional security for the password while it is stored in memory and should be used instead of InstallDistributor(String, DistributionDatabase).

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

The InstallDistributor method is equivalent to the sp_adddistributor(Transact-SQL) stored procedure.

커뮤니티 추가 항목

추가
표시: