MSSQL Server replication Mechanism master-Slave synchronization practice

Source: Internet
Author: User
Tags mssql mssql server

?? MSSQL Server replication Mechanism master-Slave synchronization practice


Reference Documentation:


Https://msdn.microsoft.com/en-us/library/aa337389.aspx
1.Preparing the Server for Replication: https://msdn.microsoft.com/en-us/library/aa337475.aspx
2.Replicating Data between continuously Connected Servers: https://msdn.microsoft.com/en-us/library/aa337437.aspx


Simply put, install the replication component of SQL Server and select it during the installation process.


1. Create 4 Windows accounts:https://msdn.microsoft.com/en-us/library/aa337433.aspx
<machine_name>\repl_snapshot
<machine_name>\repl_logreader
<machine_name>\repl_distribution
<machine_name>\repl_merge


2. Create a folder and set permissions:https://msdn.microsoft.com/en-us/library/aa337500.aspx
Create folder: C:\Program Files\Microsoft SQL Server\MSSQL. X\mssql\repldata
Permissions are as follows:
? repl_snapshot-full Control
? repl_distribution-read
? repl_merge-read


3. Configure distributed settings and set database permissions on Publisher publishers:

Https://msdn.microsoft.com/en-us/library/aa337499.aspx


4. Create a publication publication and set the appropriate permissions:

Https://msdn.microsoft.com/en-us/library/aa337453.aspx


5. Create a subscriptions subscription and set the appropriate permissions:

Https://msdn.microsoft.com/en-us/library/aa337429.aspx


6. Verify that the subscription is working correctly:

Https://msdn.microsoft.com/en-us/library/aa337388.aspx


Finally, more tables and data are available on the Publisher database, and the data is synchronized to subscribers through the distributed database.


Note: Both publishers and Subscribers here are new and set up on the publisher machine, but they point to a different server.

MSSQL Server replication Mechanism master-Slave synchronization practice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.