Groups | Blog | Home
all groups > sql server replication > may 2004 >

sql server replication : reinitialization of subscriptions


Jimmy
5/7/2004 8:23:36 AM

If I have a subscription to a publication (transactional)
and the Distribution Agent tells me I need to
reinitialize.

What are the steps to do this??

Do I need to delete all the data on the subscriber?? If
so, is there a way around this?? If not, what is the best
practice of accomplishing this?

What if there are changes made at the subscriber do I
loose them if the subscription is reinitializatized??

Paul Ibison
5/7/2004 8:27:34 PM
Jimmy,
reinitialize means apply a new snapshot, so, you'll need to run the snapshot
agent first then run the distribution agent. When you say will it delete all
the data on the subscriber, I'm not sure why this is a concern. For
transactional replication, the subscriber data is treated as RO data. If
however someone has edited the data, then you could use binary checksums to
see what has changed and then do the same changes on the publisher. If the
subscriber is using updatable transactional replication then the changes are
already on the publisher. If you're using a queue, then be sure to run the
queue reader to send up the changes.
HTH,
Paul Ibison

Hilary Cotter
5/7/2004 11:37:42 PM
expand your publishing database, right click on your publication, select
properties, click on your subscriber tab, highlight your subscriber, and
click the reinitialize button.

It will delete all the data of the replication objects and their schemas and
then replace them.

[quoted text, click to view]

anonymous NO[at]SPAM discussions.microsoft.com
5/10/2004 9:43:54 AM
Paul,

You said....

then you could use binary checksums to see what has
changed and then do the same changes on the publisher

How??

Larry...

[quoted text, click to view]
Paul Ibison
5/10/2004 8:42:17 PM
Larry,
there's a good explanation of BINARY_CHECKSUM in books online (BOL). If you
have any problems with the explanation, please post back.
Regards,
Paul Ibison

AddThis Social Bookmark Button