Share via


MergePublication.ChangeMergeDynamicSnapshotJobScheduleWithJobName Method

Definition

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

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

Parameters

dynamicSnapshotJobName
String

The job name value.

schedule
ReplicationAgentSchedule

The new job schedule.

Remarks

Calling ChangeMergeDynamicSnapshotJobScheduleWithJobName is equivalent to executing sp_changedynamicsnapshot_job.

The ChangeMergeDynamicSnapshotJobScheduleWithJobName 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