• SQL Server
  • Log Shipping Tricks Demo
  • SQLCruise Alaska 2012 Pics
SQLSoldier News From the Frontlines

Undocumented Gotchas of Transactional Replication

December 17, 2011 3:06 pm / 5 Comments / SQLSoldier

Undocumented Gotchas of Transactional Replication

Gotcha - Norelco commercial (1977)

Gotcha - Norelco commercial (1977)

This discussion started on Twitter via the #sqlhelp hash tag. The question that was asked is, “What are the undocumented gotchas of Transactional Replication? #SQLHelp”. I responded with several things that came to mind. I thought these would be good to capture in a blog post and hopefully others would contribute some more gotchas to the list.

If you can think of any other gotchas about any type of replication, not just transactional, please add it to a comment. Also, if you have a blog post on it, please include the link to the post. I’m getting the ball rolling with the ones I mentioned on Twitter.

Gotchas of Replication

    Transactional replication

  • If you run the agent continuously, and it stops (fails), it won’t restart or raise an alert until the subscription expires.
  • If the agent is failing, it will retry forever and you may never notice it is failing unless you are monitoring closely.
  • If you add/remove an article using the GUI, it will regenerate the entire snapshot. Use TSQL to avoid this.
  • Where you place the distribution db is very important for performance and manageability. Plan this point very well.
  • Check the VLFs in your db log before configuring repl. as it can have a very high impact on performance of the log reader
  • Be wary of non-replicated trans that create lots of log records (eg, index maint.) as it affects log reader performance
  • DML ops. to LOB columns in repl. tables will fail if the length of value exceeds the “max text repl size (B)” setting.
  • Make sure you are testing deployments in repl. preprod. environ. so you aren’t surprised by related failures in Prod.
  • When the publication is mirrored. Transactions will not replicate until hardened on mirror, unless a trace flags used
    • Reported by John Sansom (blog|@JohnSansom)
    • John and Martin Cairns (blog|@MartinCairnsSQL) report that the whitepaper can be downloaded here.
  • Log reader fails if it encounters blank (empty) XML in an XML column.
    • Reported and blogged by Kendall Van Dyke (blog|@SQLDBA) here.
  • Including an article in multiple publications can lead to performance problems.
    • Reported and blogged by Kendall Van Dyke (blog|@SQLDBA) here.
  • Altering articles to not replicate deletes may not be set on all articles as expected.
    • Reported and blogged by Kendall Van Dyke (blog|@SQLDBA) here.
    Merge replication

  • Changing conflict tracking level from row to column generates conflicts when different columns are updated
    • Reported and blogged by David Williams (blog|@is_brandon) here.
Posted in: SQL Server / Tagged: General Discussion, Replication, Undocumented Stuff

5 Thoughts on “Undocumented Gotchas of Transactional Replication”

  1. Pingback: Undocumented Gotcha in Merge Replication Tracking | SQLREPL | Brandon Williams

  2. Brandon Williams on December 18, 2011 at 1:31 am said:

    Hi Robert,

    I’m liking the list so far.

    I thought of one particular gotcha with Merge Replication that came to mind and wrote a blog post about it here: http://www.sqlrepl.com/sql-server/undocumented-gotcha-in-merge-replication-tracking/

    Reply↓
    • SQLSoldier on December 18, 2011 at 7:53 am said:

      Thanks Brandon! Page updated. Looks like you have some great info on replication on your blog. Going to have to read through it.

      Reply↓
  3. Lewis on January 2, 2013 at 7:39 pm said:

    I’ve done the same :) my blog is kind of all about technology (and other things), but I just wrote an article (that I think is incredibly useful) teaching people how to deal with SQL replication conflicts (which is actually how I found your blog!).

    Here’s me: http://public.madeinengland.co.nz/sql-server-conflict-resolution/

    Reply↓
    • SQLSoldier on January 2, 2013 at 8:12 pm said:

      Thanks Lewis! There aren’t a lot of replication bloggers, and it’s always good to learn about others.

      Reply↓

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation

← Previous Post
Next Post →
<

Remote DBA Services
- serious SQL Server expertise for less than a full-time DBA
My Articles
 
My Book
Check out my interview on

Extreme Data Recovery (with Argenis Fernandez)
10 Things all BI System Administrators Should Know
Upcoming Events
    All events shown in Pacific Time

    No events to show

RSS My SQL Server Magazine Articles

  • Database Mirroring for Disaster Recovery September 16, 2011
  • Comparative Review: Database Schema Comparison Tools August 24, 2011
  • 3 Log Shipping Techniques June 22, 2011
  • Hardening SQL Server June 20, 2011
  • Review: ScriptLogic Security Explorer for SQL Server February 8, 2011

Tags

31 Days of Disaster Recovery Architecture Automation CDC & Change Tracking Data Architecture VC Database Mirroring DBCC Denali Disaster Recovery Dynamic Management Views Extended Events Gamers & Geeks General Discussion High Availability How do I ... ? Humor Idera ACE Program Internals MCM Meme Monday Performance & Optimization PowerShell Professional Development Replication Security SQLBits SQL PASS SQL PASS Summit SQLRally SQL Saturday SQL Server Magazine SQL University SSAS & BI SSIS SSMS SSRS T-SQL T-SQL Tuesday tempDB Tips & Tricks Travel Troubleshooting Undocumented Stuff Whitepapers XML in SQL

News

Download my Powershell Scripts

The following scripts can be downloaded as text files. You will need to change the file extension to .ps1 in order to execute them.

Backup a database
Restore a database
Scan a server to find a free port
Query DNS to get the FQDN of a server


To see some examples of my other forms of writing, please visit my page on WritersCafe.org. It is almost exclusively horror fiction, but I sometimes throw other things in there too from time to time. There's one science fiction story, a couple of poems, and quite a few humor pieces as well.


Look for me in the SQL Q&A section of the August, 2007 issue of TechNet Magazine.
August issue of TechNet Magazine's SQL Q&A column

Protect our Heroes

© Copyright 2012 - Robert L Davis
Infinity Theme by DesignCoral / WordPress

Twitter Twitter 
LinkedIn LinkedIn 
TLF TLF RSS RSS 
WritersCafe WritersCafe 
SQLPASS SQLPASS 
Facebook Facebook
grab this