Subscription.AgentSchedule プロパティ

定義

サブスクリプション同期に使われるエージェントジョブのスケジュールを取得します。

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 を実行すると、ジョブのスケジュールのIDが AgentJobId を表しています。

AgentScheduleプロパティは、Publisherのsysadmin固定サーバーロールのメンバー、出版データベースのdb_owner固定データベースロールのメンバー、またはサブスクリプションを作成したユーザーのみが取得可能です。

AgentSchedule財産の回収は、sp_helpsubscriptionsp_helpmergesubscriptionを実行するのと同等です。

エージェントのスケジュールを設定することは、 sp_addpushsubscription_agentsp_addmergepushsubscription_agentを実行するのと同等です。

適用対象