How To
How to Create a Pull Subscription (Transact-SQL)
To add a pull subscription to a snapshot publication
- Execute sp_addpublication with allow_pull set to true to enable pull subscriptions at the Publisher.
- Execute sp_addsubscriber to register the Subscriber at the Publisher.
- Execute sp_addsubscription to create the subscription at the Publisher.
- Execute sp_addpullsubscription to create the pull subscription at the Subscriber.
- Execute sp_addpullsubscription_agent to create a scheduled job for the Distribution Agent at the Subscriber.
To create a pull subscription (transactional)
- Execute sp_addpublication with allow_pull set to TRUE to enable pull subscriptions at the Publisher.
- Execute sp_addsubscriber to register the Subscriber at the Publisher.
- Execute sp_addsubscription to create the subscription at the Publisher.
- Execute sp_addpullsubscription to create the pull subscription at the Subscriber.
- Execute sp_addpullsubscription_agent to create a scheduled job for the Distribution Agent at the Subscriber.
To add a pull subscription (merge)
- Execute sp_addmergepublication with allow_pull set to TRUE to enable pull subscriptions at the Publisher.
- Execute sp_addsubscriber to register the Subscriber at the Publisher.
- Execute sp_addmergesubscription to create the subscription at the Publisher.
- Execute sp_addmergepullsubscription to create the subscription at the Subscriber.
- Execute sp_addmergepullsubscription_agent to create a scheduled job for the Distribution Agent at the Subscriber.