SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Do row filters avoid full table locks?


Do row filters avoid full table locks?

Author
Message
lordzoster
lordzoster
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 102
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



Evil Kraig F
Evil Kraig F
SSCrazy Eights
SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)

Group: General Forum Members
Points: 8645 Visits: 7660
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 | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search