DistributionDatabase.QueueReaderAgentProcessSecurity プロパティ

定義

Queue Reader Agentジョブを実行するためのエージェントプロセスのセキュリティコンテキストを取得します。

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

プロパティ値

IProcessSecurityContextインターフェースの一例です。

注釈

QueueReaderAgentProcessSecurity は読み取り専用プロパティです。 返されたIProcessSecurityContextインターフェースを使って、キューリーダーエージェントのジョブが実行されるMicrosoft Windowsアカウントを指定します。 エージェントが行う接続やそれに必要な権限については、「 レプリケーションエージェントセキュリティモデル」を参照してください。

QueueReaderAgentProcessSecurityプロパティは、ディストリビューターのsysadmin固定サーバーロールのメンバーか、配布データベース上のdb_owner固定データベースメンバーのみが取得できます。

返された IProcessSecurityContext オブジェクトのプロパティは、ディストリビューターの sysadmin 固定サーバーロールのメンバーのみが設定可能です。

QueueReaderAgentProcessSecurityの取得はsp_helpqreader_agentを実行するのと同等です。

返された IProcessSecurityContext インターフェースのプロパティを設定することは、 sp_addqreader_agentsp_changeqreader_agentを実行するのと同等です。

適用対象