15 SQL Server replication tips in 15 minutes

The following list of tips and tricks will help you enhance replication performance and monitoring.

Keep in mind that transactional replication offers the best performance of all the replication types. Far too often, clients use snapshot or merge replication when transactional replication is the best choice. For instance, you should use snapshot if your data changes infrequently, if a large portion of data changes or if clients don't require an up-to-date data set.

In all other cases, consider transactional replication as only the changes that will go across the wire to your clients. Snapshot will send the entire data set (potentially in gigabytes) each time, whereas transactional could be sending megabytes. The difference will be especially acute if you are replicating over low-bandwidth lines.

Replication tips: Performance


    Requires Free Membership to View

    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 tips: Monitoring

    1. Check subscriber status with Replication Monitor Group
    2. Expire subscribers

Replication tips: Miscellaneous

    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

About the author: Hilary Cotter has been involved in IT for more than 20 years as a Web and database consultant. Microsoft first awarded Cotter the Microsoft SQL Server MVP award in 2001. Cotter received his bachelor of applied science degree in mechanical engineering from the University of Toronto and subsequently studied both economics at the University of Calgary and computer science at UC Berkeley. He is the author of a book on SQL Server transactional replication and is currently working on books on merge replication and Microsoft search technologies.

More information from SearchSQLServer.com

  • Book Excerpt: Understanding replication methods: Snapshot, transaction and merge
  • Tip: Heterogenous data replication using SQL Server
  • Tip: SQL Server version control

  • This was first published in July 2005

    There are Comments. Add yours.

    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.