PullSubscription.AgentSchedule プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
サブスクリプション同期に使われるエージェントジョブのスケジュールを取得します。
public:
property Microsoft::SqlServer::Replication::ReplicationAgentSchedule ^ AgentSchedule { Microsoft::SqlServer::Replication::ReplicationAgentSchedule ^ get(); };
public Microsoft.SqlServer.Replication.ReplicationAgentSchedule AgentSchedule { get; }
member this.AgentSchedule : Microsoft.SqlServer.Replication.ReplicationAgentSchedule
Public ReadOnly Property AgentSchedule As ReplicationAgentSchedule
プロパティ値
サブスクリプションのスケジュールを表す ReplicationAgentSchedule オブジェクト。
注釈
サブスクリプションを作成する前に、返 ReplicationAgentSchedule オブジェクトのプロパティを設定しなければなりません。 一度スケジュールを設定すると、レプリケーション管理オブジェクト(RMO)を使って変更することはできません。 代わりに、 JobSchedule クラスを呼び出すか、既存のスケジュールを変更するために sp_update_schedule(Transact-SQL) を実行しなければなりません。 <xref:Microsoft.SqlServer.Replication.PullSubscription.AgentJobID%2A> はジョブのスケジュールIDを表します。
AgentScheduleプロパティは、加入者側のsysadmin固定サーバーロールのメンバーか、サブスクリプションデータベースのdb_owner固定データベース役割のメンバーのみが取得可能です。
AgentScheduleプロパティの取得は、sp_helppullsubscription(Transact-SQL)またはsp_helpmergepullsubscription(Transact-SQL)を実行するのと同等です。
エージェントスケジュールの設定は、 sp_addpullsubscription_agent(Transact-SQL) または sp_addmergepullsubscription_agent(Transact-SQL)を実行するのと同等です。