ReplicationServer.ScriptInstallDistributor Método
Returns a Transact-SQL script that installs the Distributor.
Espacio de nombres: Microsoft.SqlServer.Replication
Ensamblado: Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)
Sintaxis
'Declaración
Public Function ScriptInstallDistributor ( _
distributionServerName As String, _
scriptOption As ScriptOptions _
) As String
'Uso
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
Parámetros
- distributionServerName
Tipo: System.String
The name of the Distributor.
- scriptOption
Tipo: Microsoft.SqlServer.Replication.ScriptOptions
A ScriptOptions enumeration value that specifies the scripting options.
Valor devuelto
Tipo: System.String
A String value that contains the Transact-SQL script.
Excepciones
Excepción | Condición |
---|---|
ArgumentException | When distributionServerName is null, contains null characters, or is longer than 128 bytes. |
Comentarios
The ScriptInstallDistributor method can be called before InstallDistributor.