SqlServer database synchronized in two ways (publish, subscribe), synchronizes the master database

Recently just need the synchronization between the company's main database wondering, in the garden looking for a bit, see this blog in more detail, simple, step by step came in person, now for everyone to share.

Here to remind everyone that (for better understanding, the following is my own understanding, if wrong, please point out): the main database is generally publish the data out, and then connect to subscribe to data released from a database, synchronization to from the database.

1, release. Posted need to use the actual server name, you can not use the server's IP address. Information can be released, including Table], [Stored Procedures], [users] function If you use the IP there have been mistakes, as shown below:

   Specific release process is as follows:

  1. Find [copy] under the database server - [local] release, select [New release]. As shown below:

 

  2. Select the database to be released. As shown below:

 

 3, select the type of publication. Here select the default type [snapshot]. Several distinct types of release, SQL SERVER are given in the following description. As shown below:

  4, select the type of content to be released. As shown below:

The right side of the figure above is the screening of SQL statements.

  5, set the Snapshot Agent. As shown below:

 FIG synchronizing frequency changes as follows:

6, set the proxy security. As shown below:

7. Fill in name

8, complete release. As shown below:

2, subscription . Subscribe snapshot of the database is to synchronize the release, the release of the data source data synchronization to the target database. DETAILED subscription process is as follows;

1. Find [copy] under the database server - [local] subscription, select Subscribe [New]. As shown below:

2, choose to subscribe to the publication. As shown below:

3, the distribution agent selected position; FIG follows:

4, select a store on the subscriber data or synchronized from multiple target databases. As shown below:

To add more subscription database, then click [Add] subscribers. As shown below:

5, set up security for the Distribution Agent. As shown below:

6, set the synchronization schedule. As shown below:

7, to complete the subscription. As shown below:

This completes the entire process publishing and subscriptions.

Here, and on section with just introduced over two kinds of SQL Server database synchronization, I hope useful to you

Guess you like

Origin www.cnblogs.com/SyncNavigator8-4-1/p/10974438.html