言語

ReplicationDatabase.QueueReaderAgentProcessSecurity プロパティ

定義

ディストリビューターでキューリーダーエージェントのジョブを実行するMicrosoft Windowsアカウントを取得します。

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

プロパティ値

キューリーダーエージェントを実行する際にSQL Server エージェントが使用するWindowsアカウントを指定するIProcessSecurityContextオブジェクトです。

例外

バージョンがMicrosoft SQL Server 2005以降でない場合。

キューリーダーエージェントがSQL Server 2005のレプリケーションエージェントセキュリティモデルにアップグレードされていない場合。 詳細については、 セキュリティと保護(レプリケーション)を参照してください。

注釈

セキュリティ上の理由から、 Password は常にリターン値で隠されています。

QueueReaderAgentProcessSecurityプロパティで指定されたWindowsアカウントは、ディストリビューターとローカル接続する際、キューリーダーエージェントが常に使用します。 エージェントが行う接続やそれに必要な権限については、「 レプリケーションエージェントセキュリティモデル」を参照してください。

QueueReaderAgentProcessSecurityプロパティは、sysadmin固定サーバーロールのメンバーまたは公開データベースのdb_owner固定データベースメンバーによって取得可能です。

QueueReaderAgentProcessSecurityプロパティの取得はsp_helpqreader_agent(Transact-SQL)を実行するのと同等です。

適用対象