How to: Specify Synchronization Schedules (SQL Server Management Studio)
Subscriptions are synchronized by the Distribution Agent (for snapshot and transactional replication) or the Merge Agent (for merge replication). Agents can:
- Run continuously
- Run on demand
- Run on a schedule
Specify synchronization schedules on the Synchronization Schedule page of the New Subscription Wizard. For more information about accessing this wizard, see How to: Create a Push Subscription (SQL Server Management Studio) and How to: Create a Pull Subscription (SQL Server Management Studio).
Modify synchronization schedules in the Job Schedule Properties dialog box, which is available from the Jobs folder in Microsoft SQL Server Management Studio and from the agent details windows in Replication Monitor. For information about starting Replication Monitor, see How to: Start Replication Monitor (Replication Monitor).
If you specify schedules from the Jobs folder, use the following table to determine the agent job name.
Agent | Job name |
---|---|
Merge Agent for pull subscriptions |
<Publisher>-<PublicationDatabase>-<Publication>-<Subscriber>-<SubscriptionDatabase>-<integer> |
Merge Agent for push subscriptions |
<Publisher>-<PublicationDatabase>-<Publication>-<Subscriber>-<integer> |
Distribution Agent for push subscriptions |
<Publisher>-<PublicationDatabase>-<Publication>-<Subscriber>-<integer>1 |
Distribution Agent for pull subscriptions |
<Publisher>-<PublicationDatabase>-<Publication>-<Subscriber>-<SubscriptionDatabase>-<GUID>2 |
Distribution Agent for push subscriptions to non-SQL Server Subscribers |
<Publisher>-<PublicationDatabase>-<Publication>-<Subscriber>-<integer> |
1 For push subscriptions to Oracle publications, it is <Publisher>-<Publisher> rather than <Publisher>-<PublicationDatabase>
2 For pull subscriptions to Oracle publications, it is <Publisher>-<DistributionDatabase> rather than <Publisher>-<PublicationDatabase>
To specify synchronization schedules
On the SynchronizationSchedule page of the New Subscription Wizard, select one of the following values from the Agent Schedule drop-down list for each subscription you are creating:
- Run continuously
- Run on demand only
- <Define Schedule…>
If you select <Define Schedule…>, specify a schedule in the Job Schedule Properties dialog box, and then click OK.
Complete the wizard.
To modify a synchronization schedule for a push subscription in Replication Monitor
Expand a Publisher group in the left pane of Replication Monitor, expand a Publisher, and then click a publication.
Click the All Subscriptions tab.
Right-click a subscription, and then click View Details.
In the Subscription < SubscriptionName> window, click Action, and then click <AgentName> Job Properties.
On the Schedules page of the Job Properties - <JobName> dialog box, click Edit.
In the Job Schedule Properties dialog box, select a value from the Schedule Type drop-down list:
- To specify that the agent should run continuously, select Start automatically when SQL Server Agent starts.
- To specify that the agent should run on a schedule, select Recurring.
- To specify that the agent should run on demand, select One time.
If you select Recurring, specify a schedule for the agent.
Click OK.
To modify a synchronization schedule for a push subscription in Management Studio
Connect to the Distributor in Management Studio, and then expand the server node.
Expand the SQL Server Agent folder, and then expand the Jobs folder.
Right-click the job for the Distribution Agent or Merge Agent associated with the subscription, and then click Properties.
On the Schedules page of the Job Properties - <JobName> dialog box, click Edit.
In the Job Schedule Properties dialog box, select a value from the Schedule Type drop-down list:
- To specify that the agent should run continuously, select Start automatically when SQL Server Agent starts.
- To specify that the agent should run on a schedule, select Recurring.
- To specify that the agent should run on demand, select One time.
If you select Recurring, specify a schedule for the agent.
Click OK.
To modify a synchronization schedule for a pull subscription in Management Studio
Connect to the Subscriber in Management Studio, and then expand the server node.
Expand the SQL Server Agent folder, and then expand the Jobs folder.
Right-click the job for the Distribution Agent or Merge Agent associated with the subscription, and then click Properties.
On the Schedules page of the Job Properties - <JobName> dialog box, click Edit.
In the Job Schedule Properties dialog box, select a value from the Schedule Type drop-down list:
- To specify that the agent should run continuously, select Start automatically when SQL Server Agent starts.
- To specify that the agent should run on a schedule, select Recurring.
- To specify that the agent should run on demand, select One time.
If you select Recurring, specify a schedule for the agent.
Click OK.
See Also
Tasks
How to: Synchronize a Push Subscription (SQL Server Management Studio)
How to: Synchronize a Pull Subscription (SQL Server Management Studio)
Concepts
Other Resources
How to: Specify Synchronization Schedules (Replication Transact-SQL Programming)