DistributorName プロパティ

ディストリビュータであり、サブスクリプションがサブスクライブするパブリケーションをディストリビュートしている MicrosoftSQL Server のインスタンスを取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Replication
アセンブリ:  Microsoft.SqlServer.Rmo (Microsoft.SqlServer.Rmo.dll)

構文

'宣言
Public Property DistributorName As String
    Get
    Set
'使用
Dim instance As PullSubscription
Dim value As String

value = instance.DistributorName

instance.DistributorName = value
public string DistributorName { get; set; }
public:
property String^ DistributorName {
    String^ get ();
    void set (String^ value);
}
member DistributorName : string with get, set
function get DistributorName () : String
function set DistributorName (value : String)

プロパティ値

型: System. . :: . .String
String 値です。

説明

DistributorName は必須プロパティであり、サーバーでサブスクリプションを作成する前に設定する必要があります。サーバーでサブスクリプションを登録した後に DistributorName プロパティを変更することはできません。

DistributorName プロパティを取得できるのは、サブスクライバ側の固定サーバー ロール sysadmin のメンバ、またはサブスクリプション データベースの固定データベース ロール db_owner のメンバだけです。

DistributorName プロパティを設定できるのは、サブスクライバ側の固定サーバー ロール sysadmin のメンバ、またはサブスクリプション データベースの固定データベース ロール db_owner のメンバだけです。

DistributorName プロパティを取得すると、sp_helppullsubscription (Transact-SQL) または sp_helpmergepullsubscription (Transact-SQL) を実行したのと同じことになります。

DistributorName プロパティを設定すると、sp_addpullsubscription (Transact-SQL) または sp_addmergepullsubscription (Transact-SQL) を実行したのと同じことになります。

DistributorName プロパティは、SQL Server 7.0、SQL Server 2000、および SQL Server 2005 で使用できます。

この名前空間、クラス、またはメンバは、.NET Framework 2.0 でのみサポートされています。