PullSubscription.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実行 (Transact-SQL) を実行して、ジョブのスケジュールの ID を表す既存のスケジュール <xref:Microsoft.SqlServer.Replication.PullSubscription.AgentJobID%2A> を変更する必要があります。

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

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

エージェント スケジュールの設定は、 sp_addpullsubscription_agent (Transact-SQL) または sp_addmergepullsubscription_agent (Transact-SQL) の実行と同じです。

適用対象

こちらもご覧ください