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

15 SQL Server replication skills in 15 minutes

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

15 SQL Server Replication Tips in 15 Minutes

Translated from:

15 SQL Server replication tips in 15 minutes

This list of tips and tricks will help you enhance your replication techniques. It is divided into three sections: Performance, Monitoring and Others.

Remember, transactional replication provides the best performance of all replication types. Most of the time, clients use snapshot or merge replication and transactional replication is the best choice. For example, if the data is not modified frequently, if there is a lot of data modification, or if the client does not need a real-time updated dataset, you can use snapshot replication.

In all other cases, transactional replication is only considered to be a modification transmitted over the network to the client. Snapshots send the entire dataset (most likely GB) at a time, while transactions are sent in MB. If you copy at low bandwidth, the difference will be very noticeable.

Replication Tips: Performance

1. Replicate tables without primary keys

2. Achieve bi-directional replication

3. Replicate stored procedure execution

4. Create lightweight tables on the subscriber

5. Put subscription database in Bulk Logged recovery model

6. Use the independent agent option

7. Change your polling interval

8. Maintain your log

9. Set performance profiles

Replication Technique: Monitoring

1. Check subscriber status with Replication Monitor Group

2. Expire subscribers

Copy Technique: Other

1. Replicate to objects with different schemas

2. Reveal replication commands

3. Check number of commands to be replicated

4. Prevent updates, inserts and deletes from being replicated

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