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

sql server replication

group:

Replication from 2 sites to 1 database


Replication from 2 sites to 1 database Eko
4/7/2004 3:04:02 AM
sql server replication:
Dear all,

I need your advice. The situation is as follows:

Site 1: Customer Database with RegionCode = 1
Site 2: Customer Database with RegionCode = 2
Site 3: Customer Database with all RegionCode

Can we do the replication (push) from Site 1 and site 2
to one database at Site 3?
If it does, when we add a record at site 1 (which is
RegionCode = 1), will the database at Site 2 be updated
also? if it will, can we avoid this?
Re: Replication from 2 sites to 1 database Eko
4/7/2004 4:13:44 AM
Thanks Paul,

Can we set Site 1 and site 2 as the publishers and site 3
as the subscribers? Those sites already exist and I
cannot make any (big) changes there.
Can we set dynamic filter if we don't have any defined
relationship? how?
How to use -HOSTNAME? since I only see bcpbatchsize,
changesperhistory....etc in merge agent profile :))

Sorry for these questions. I am newbie.

Thanks again Paul.


[quoted text, click to view]
Re: Replication from 2 sites to 1 database Hilary Cotter
4/7/2004 8:13:13 AM
you'll have to drop existing publications and subscriptions and then rebuild
them doing a no-sync.

Hostname is a parameter you can add to your merge agent just like the
bcpbatchsize parameters
[quoted text, click to view]

Re: Replication from 2 sites to 1 database Paul Ibison
4/7/2004 11:16:12 AM
Eko,
use merge replication. Set Site 3 as the publisher, Sites 1 and 2 as
subscribers.
Dynamically filter the data according to the subscriber, using -HOSTNAME in
the merge agent profile.
This topology will do what you require. Please post back if any of this is
unclear.
Regards,
Paul Ibison


AddThis Social Bookmark Button