Groups | Blog | Home
all groups > sql server replication > november 2006 >

sql server replication : Temporarily blocking merge agents...


Troy Wolbrink
11/29/2006 2:53:51 PM
How can someone temporarily block merge agents (pull subscriptions) from
synchronizing with my server?

Paul Ibison
11/29/2006 9:58:39 PM
Troy - what are you observing? sp_who2 will reveal the blocking process. The
merge agent will need to modify records in user tables which may be blocked
so really any transaction on such tables can block the merge agent. A
typical issue is when reindexing takes place at the same time as
synchronization.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .

Troy Wolbrink
11/30/2006 1:20:13 PM
[quoted text, click to view]

I'm trying to be preemptive about keeping subscribers from synchronizing
while I do some tasks with in my database. I found the solution, for each
publication I want to temporarily make unavailable:

EXEC sp_changemergepublication @publication = 'xxx', @property = 'status',
@value = 'inactive'

After my database maintenance, I make each publications available again by
calling the inverse:

EXEC sp_changemergepublication @publication = 'xxx', @property = 'status',
@value = 'active'

--Troy

Chris
12/4/2006 5:36:00 AM

I would schedule merge agents perhaps every 1 minute, rather than run
continuous. Then only run from 12AM to 11PM, allowing a 1 hour maint window
between 11 & 12. Or setup via DMO/SMO to stop then disable all schedules
across all subscribers from a central ws...

Chris MCDBA MCSE
MSSQLConsulting.com

[quoted text, click to view]
Troy Wolbrink
12/4/2006 11:48:00 AM
The problem is that the running of the merge agents are outside of my
control. Synchronization is initiated by remote customers.

--Troy


[quoted text, click to view]

AddThis Social Bookmark Button