次の方法で共有


ReplicationServer.DistributionDatabase プロパティ

現在接続している SQL Server のインスタンスのディストリビューション データベースの名前を取得します。 

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

構文

'宣言
Public ReadOnly Property DistributionDatabase As String 
    Get
'使用
Dim instance As ReplicationServer 
Dim value As String 

value = instance.DistributionDatabase
public string DistributionDatabase { get; }
public:
property String^ DistributionDatabase {
    String^ get ();
}
member DistributionDatabase : string
function get DistributionDatabase () : String

プロパティ値

型: System.String
ディストリビューション データベースの名前を指定する String 値です。

説明

DistributionDatabase プロパティは、現在のサーバーがパブリッシャーである場合にのみ有効です。 IsPublisher プロパティの値が true の場合は、サーバーがパブリッシャーであることを示します。

DistributionDatabase プロパティを設定できるのは、固定サーバー ロール sysadmin のメンバーだけです。

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

関連項目

参照

ReplicationServer クラス

Microsoft.SqlServer.Replication 名前空間

その他の技術情報

パブリッシングおよびディストリビューションを構成する方法 (RMO プログラミング)