ReplicationServer.ScriptInstallDistributor(String, ScriptOptions) ReplicationServer.ScriptInstallDistributor(String, ScriptOptions) ReplicationServer.ScriptInstallDistributor(String, ScriptOptions) Method

Definition

Returns a Transact-SQL script that installs the Distributor.

public:
 System::String ^ ScriptInstallDistributor(System::String ^ distributionServerName, Microsoft::SqlServer::Replication::ScriptOptions scriptOption);
public string ScriptInstallDistributor (string distributionServerName, Microsoft.SqlServer.Replication.ScriptOptions scriptOption);
Public Function ScriptInstallDistributor (distributionServerName As String, scriptOption As ScriptOptions) As String

Parameters

distributionServerName
String String String

The name of the Distributor.

scriptOption
ScriptOptions ScriptOptions ScriptOptions

A ScriptOptions enumeration value that specifies the scripting options.

Returns

A String value that contains the Transact-SQL script.

Exceptions

When distributionServerName is null, contains null characters, or is longer than 128 bytes.

Remarks

The ScriptInstallDistributor method can be called before InstallDistributor.

Applies to