PullSubscription.DistributorSecurity プロパティ

定義

ディストリビューターへの接続に使用されるセキュリティ コンテキストを取得します。

public:
 property Microsoft::SqlServer::Replication::ConnectionSecurityContext ^ DistributorSecurity { Microsoft::SqlServer::Replication::ConnectionSecurityContext ^ get(); };
public Microsoft.SqlServer.Replication.ConnectionSecurityContext DistributorSecurity { get; }
member this.DistributorSecurity : Microsoft.SqlServer.Replication.ConnectionSecurityContext
Public ReadOnly Property DistributorSecurity As ConnectionSecurityContext

プロパティ値

ConnectionSecurityContext オブジェクト。

注釈

ディストリビューターからサブスクライバーに接続する際、同期エージェントで使用するセキュリティ モードを指定するには、ConnectionSecurityContext によって返される DistributorSecurity オブジェクトに、セキュリティ プロパティを設定します。 既存のサブスクリプションの場合、サーバーに変更を書き込むには、Update を呼び出す必要があります。

可能な場合は、Windows 認証を使用します。

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

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

プロパティの DistributorSecurity 取得は、 sp_helppullsubscription (Transact-SQL) または sp_helpmergepullsubscription (Transact-SQL) の実行と同じです。

プロパティの DistributorSecurity 設定は、 sp_addpullsubscription_agent (Transact-SQL)sp_addmergepullsubscription_agent (Transact-SQL)sp_changemergepullsubscription (Transact-SQL)、または sp_change_subscription_properties (Transact-SQL) の実行と同じです。

適用対象