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.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.