all groups > sql server replication > july 2004 >
You're in the

sql server replication

group:

Subscriber Reinitialization and Retention Period


Subscriber Reinitialization and Retention Period Maer
7/31/2004 2:34:53 PM
sql server replication:
Hi Guys - I am trying to understand how merge replication works. One
question that I have is this: after the intial snapshot is applied to the
subscriber, does the Snapshot Agent at the publisher generate a new snapshot
every time the Merge Agent runs (although it may not apply it to the
subscrobers)? Or does it create the snapshot only when the publisher
reinitializes?

Along the same lines, is there a rule of thumb on how often subscribers
should be reinitialized? What are the benefits?

Another question is about the retention period. The default is 14 days
for merge replication. What are the negative affects of setting
subscriptions to never expire?


Thank you - Maer

Re: Subscriber Reinitialization and Retention Period Paul Ibison
8/1/2004 11:47:24 AM
Maer,

on initialization, the merge agent will look for the snapshot files. If they
are not there, the merge agent will not automatically start the snapshot
agent.

Reinitialization of subscribers is required when the articles in the
publication need changing in a way that is not possible with replication set
up, or if there is non-convergence of data (failure of data validation etc).
In a typical setup, reinitialization is never really necessary.

The retention period of 14 days prevents old subscriber data from
synchronizing and uploading these changes to the Publisher. It also helps
optimize replication with the metadatacleanup, so setting it to never expire
is not generally a good idea.

HTH,

Paul Ibison

Re: Subscriber Reinitialization and Retention Period Maer
8/1/2004 11:50:41 AM
Thank you, Paul. It makes sense to me now. I will also look into
metadatacleanup so I am more informed.

So, what happens to the old expired subscriber? If they made changes to
their replica, would they be just out of luck and not be able to sync
anymore? Would they have to unsubscribe and subscribe again? What would be
the most logical course of action in this scenario?

Thanks again for your time and insight,

Maer


[quoted text, click to view]

Re: Subscriber Reinitialization and Retention Period Paul Ibison
8/2/2004 8:31:05 AM
Maer,

have a look at "expired subscriptions" in BOL - the bottom section describes
merge deactivation behaviour.

If the merge subscription is not cleaned up and the subscriber continues to
make changes, on reinitialization you can choose to have all the data
changes uploaded from the Subscriber before the snapshot is reapplied. Any
updates that have been made at the Subscriber since the last synchronization
will be propagated to the Publisher before the snapshot is reapplied.

HTH,

Paul Ibison

Re: Subscriber Reinitialization and Retention Period Hilary Cotter
8/2/2004 8:32:06 AM
Depending on the size of your snapshot, reinitializing can improve
performance as it clears the MSMerge_contents and MSMerge_tombstone tables.


--
Hilary Cotter
Looking for a book on SQL Server replication?
http://www.nwsu.com/0974973602.html


[quoted text, click to view]

AddThis Social Bookmark Button