Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SQL Server Replication- Local publish and subscribe configuration

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article describes configuring local publish subscriptions in a single instance. Replication is a set of technologies that replicate and distribute data and database objects from one database to another, and then synchronize between databases to maintain consistency. With replication, data can be assigned to different locations and to remote or mobile users through local and wide area networks, dial-up connections, wireless connections, and Internet.

1. Configure local distribution

Right-click Replication and click Configure Distribution...

Select the local instance as the Distributor

Set the snapshot path to the local directory

Set the distribution database name and the distribution database file path (default)

Click close when you are finished

two。 Configure local publishing

Right-click Local Publications

Select published database

Select the type of publication (according to the actual need). Select the transaction here.

Select tables, stored procedures, views, methods that need to be published

Tables without primary keys are not allowed to publish

If you need to filter the published data, click Add to write the filter criteria. There is no need to filter here.

Set the account number of snapshot agent and log reading agent, and click Security Settings...

The settings are as follows

Set the publication name

3. Create a local subscription

Right-click Local Subscriptions and click New Subscriptions

Select Publishing Source

All agents run on the server of the distribution library

Select a subscription database, or you can choose to create a new

As follows, select a database that has been built

To set up a connection account, click.

The settings are as follows

Run continuously uninterrupted synchronization is selected by default

The default option is to initialize the subscription immediately

4. Check

After the configuration is complete, the database is displayed as follows

View Replication Monitor

View historical synchronization history

At this point, the local publish subscription configuration is complete.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report