Do row filters avoid full table locks?

  • Hallo

    in case a row filter exists on a published table in a snapshot replication, does the snapshot agent takes locks at rows level rather than at table level?

    I'm not finding any documentation about that.

    (In my specific case, I set up a snapshot replication, that sometimes fails since third party applications lock published tables for a long time.

    I raised the snapshot agent timeout to 3600s, but it's not the definitive solution)

    thanks in advance

  • As usual, it depends.

    Replication uses locking like anything else. Even if you have a row filter on, unless that's a VERY small row filter (5000 rows or less), the possibility to want to upgrade to a table lock exists. Doesn't mean it will however, it will simply try.

    However, if your 3rd party apps have exclusive locks on rows your replication needs, there's nothing your locking techniques are going to fix for that unless you start doing some madness like read uncommitted or something equally painful... which I'm not even sure you CAN do in replication. I certainly hope not.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply