Share via


MergePublication.ChangeMergeDynamicSnapshotJobScheduleWithJobId Method

Definition

Modifies the schedule for the Snapshot Agent job that generates the filtered data partition for a Subscriber, based on the job ID.

public:
 void ChangeMergeDynamicSnapshotJobScheduleWithJobId(System::String ^ dynamicSnapshotJobId, Microsoft::SqlServer::Replication::ReplicationAgentSchedule ^ schedule);
public void ChangeMergeDynamicSnapshotJobScheduleWithJobId (string dynamicSnapshotJobId, Microsoft.SqlServer.Replication.ReplicationAgentSchedule schedule);
member this.ChangeMergeDynamicSnapshotJobScheduleWithJobId : string * Microsoft.SqlServer.Replication.ReplicationAgentSchedule -> unit
Public Sub ChangeMergeDynamicSnapshotJobScheduleWithJobId (dynamicSnapshotJobId As String, schedule As ReplicationAgentSchedule)

Parameters

dynamicSnapshotJobId
String

The job ID value.

schedule
ReplicationAgentSchedule

The new job schedule.

Remarks

Calling ChangeMergeDynamicSnapshotJobScheduleWithJobId is equivalent to executing sp_changedynamicsnapshot_job.

The ChangeMergeDynamicSnapshotJobScheduleWithJobId method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.

Applies to

See also