Метод ReplicationServer.ScriptInstallDistributor
Returns a Transact-SQL script that installs the Distributor.
Пространство имен: Microsoft.SqlServer.Replication
Сборка: Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)
Синтаксис
'Декларация
Public Function ScriptInstallDistributor ( _
distributionServerName As String, _
scriptOption As ScriptOptions _
) As String
'Применение
Dim instance As ReplicationServer
Dim distributionServerName As String
Dim scriptOption As ScriptOptions
Dim returnValue As String
returnValue = instance.ScriptInstallDistributor(distributionServerName, _
scriptOption)
public string ScriptInstallDistributor(
string distributionServerName,
ScriptOptions scriptOption
)
public:
String^ ScriptInstallDistributor(
String^ distributionServerName,
ScriptOptions scriptOption
)
member ScriptInstallDistributor :
distributionServerName:string *
scriptOption:ScriptOptions -> string
public function ScriptInstallDistributor(
distributionServerName : String,
scriptOption : ScriptOptions
) : String
Параметры
- distributionServerName
Тип: System.String
The name of the Distributor.
- scriptOption
Тип: Microsoft.SqlServer.Replication.ScriptOptions
A ScriptOptions enumeration value that specifies the scripting options.
Возвращаемое значение
Тип: System.String
A String value that contains the Transact-SQL script.
Исключения
Исключение | Условие |
---|---|
ArgumentException | When distributionServerName is null, contains null characters, or is longer than 128 bytes. |
Замечания
The ScriptInstallDistributor method can be called before InstallDistributor.