How to: Create an Updatable Subscription to a Transactional Publication (SQL Server Management Studio)
Note
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
Configure updatable subscriptions on the Updatable Subscriptions page of the New Subscription Wizard. This page is only available if you have enabled a transactional publication for updatable subscriptions. For more information about enabling updatable subscriptions, see How to: Enable Updating Subscriptions for Transactional Publications (SQL Server Management Studio).
To configure an updatable subscription from the Publisher
Connect to the Publisher in Microsoft SQL Server Management Studio, and then expand the server node.
Expand the Replication folder, and then expand the Local Publications folder.
Right-click a transactional publication enabled for updating subscriptions, and then click New Subscriptions.
Follow pages in the wizard to specify options for the subscription, such as where the Distribution Agent should run.
On the Updatable Subscriptions page of the New Subscription Wizard, ensure Replicate is selected.
Select an option from the Commit at Publisher drop-down list:
To use immediate updating subscriptions, select Simultaneously commit changes. If you select this option, and the publication allows queued updating subscriptions (the default for publications created with the New Publication Wizard), the subscription property update_mode is set to failover. This mode allows you to switch to queued updating later if necessary.
To use queued updating subscriptions, select Queue changes and commit when possible. If you select this option, and the publication allows immediate updating subscriptions (the default for publications created with the New Publication Wizard), and the Subscriber is running SQL Server 2005 or a later version, the subscription property update_mode is set to queued failover. This mode allows you to switch to immediate updating later if necessary.
For information about switching update modes, see How to: Switch Between Update Modes for an Updatable Transactional Subscription (SQL Server Management Studio).
The Login for Updatable Subscriptions page is displayed for subscriptions that use immediate updating or have update_mode set to queued failover. On the Login for Updatable Subscriptions page, specify a linked server over which connections to the Publisher are made for immediate updating subscriptions. Connections are used by the triggers that fire at the Subscriber and propagate changes to the Publisher. Select one of the following options:
Create a linked server that connects using SQL Server Authentication. Select this option if you have not defined a remote server or linked server between the Subscriber and the Publisher. Replication creates a linked server for you. The account you specify must already exist at the Publisher.
Use a linked server or remote server that you have already defined. Select this option if you have defined a remote server or linked server between the Subscriber and the Publisher using sp_addserver (Transact-SQL), sp_addlinkedserver (Transact-SQL), SQL Server Management Studio, or another method.
For information about the permissions required by the linked server account, see the "Immediate Updating Subscriptions" section of Security Considerations for Updating Subscriptions.
Complete the wizard.
To configure an updatable subscription from the Subscriber
Connect to the Subscriber in SQL Server Management Studio, and then expand the server node.
Expand the Replication folder.
Right-click the Local Subscriptions folder, and then click New Subscriptions.
On the Publication page of the New Subscription Wizard, select <Find SQL Server Publisher> from the Publisher drop-down list.
Connect to the Publisher in the Connect to Server dialog box.
Select a transactional publication enabled for updating subscriptions on the Publication page.
Follow pages in the wizard to specify options for the subscription, such as where the Distribution Agent should run.
On the Updatable Subscriptions page of the New Subscription Wizard, ensure Replicate is selected.
Select an option from the Commit at Publisher drop-down list:
To use immediate updating subscriptions, select Simultaneously commit changes. If you select this option, and the publication allows queued updating subscriptions (the default for publications created with the New Publication Wizard), the subscription property update_mode is set to failover. This mode allows you to switch to queued updating later if necessary.
To use queued updating subscriptions, select Queue changes and commit when possible. If you select this option, and the publication allows immediate updating subscriptions (the default for publications created with the New Publication Wizard), and the Subscriber is running SQL Server 2005 or a later version, the subscription property update_mode is set to queued failover. This mode allows you to switch to immediate updating later if necessary.
For information about switching update modes, see How to: Switch Between Update Modes for an Updatable Transactional Subscription (SQL Server Management Studio).
The Login for Updatable Subscriptions page is displayed for subscriptions that use immediate updating or have update_mode set to queued failover. On the Login for Updatable Subscriptions page, specify a linked server over which connections to the Publisher are made for immediate updating subscriptions. Connections are used by the triggers that fire at the Subscriber and propagate changes to the Publisher. Select one of the following options:
Create a linked server that connects using SQL Server Authentication. Select this option if you have not defined a remote server or linked server between the Subscriber and the Publisher. Replication creates a linked server for you. The account you specify must already exist at the Publisher.
Use a linked server or remote server that you have already defined. Select this option if you have defined a remote server or linked server between the Subscriber and the Publisher using sp_addserver (Transact-SQL), sp_addlinkedserver (Transact-SQL), SQL Server Management Studio, or another method.
For information about the permissions required by the linked server account, see the "Immediate Updating Subscriptions" section of Security Considerations for Updating Subscriptions.
Complete the wizard.
See Also