Поделиться через


Метод 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 Sub InstallDistributor ( _
    password As SecureString, _
    distributionDB As DistributionDatabase _
)
'Применение
Dim instance As ReplicationServer 
Dim password As SecureString 
Dim distributionDB As DistributionDatabase

instance.InstallDistributor(password, _
    distributionDB)
public void InstallDistributor(
    SecureString password,
    DistributionDatabase distributionDB
)
public:
void InstallDistributor(
    SecureString^ password, 
    DistributionDatabase^ distributionDB
)
member InstallDistributor : 
        password:SecureString * 
        distributionDB:DistributionDatabase -> unit
public function InstallDistributor(
    password : SecureString, 
    distributionDB : DistributionDatabase
)

Параметры

Замечания

You must specify a strong password for password when the Distributor has remote Publishers. If password is set to nullпустая ссылка (Nothing в Visual Basic), 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.

См. также

Справочник

ReplicationServer Класс

Перегрузка InstallDistributor

Пространство имен Microsoft.SqlServer.Replication