Share via


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);
member this.ScriptInstallDistributor : string * Microsoft.SqlServer.Replication.ScriptOptions -> string
Public Function ScriptInstallDistributor (distributionServerName As String, scriptOption As ScriptOptions) As String

Parameters

distributionServerName
String

The name of the Distributor.

scriptOption
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