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

sql server replication : Complete newbie to replication, have a question


Lucas Graf
3/6/2006 11:59:07 PM
We have had a server in LocationA for quite some time. The need arose
recently to have a server setup in LocationB due to some bandwidth issues.

LocationB was given a snapshot of the DB @ LocationA when it was first
setup. However, both machines will need to have the same data as both are
used in a production environment. I will probably want to do this nightly.

I have read a lot of posts and webistes, but still am semi in the dark.
About the only thing i've figured out (i think) is that I will need to do
some sort of merge replicaiton.

What do I need to do to get started, a link to a HOW TO for a smiliar setup
would be great. I have read a bit and some mention having a 3rd server, do
i need a 3rd server as the final merged server? I guess more importantly is
a 3rd server an optimal solution?

Any help would be greatly appreciated.

Lucas Graf
3/7/2006 12:02:01 AM
Forgot to mention, I am running SQL Server 2000 on both servers.

[quoted text, click to view]

Yi Chen [MSFT]
3/7/2006 1:43:16 AM
In merge replication you will have Distributor, Publisher and Subscriber.
They are different roles for a replication setup but they can be on the same
physical machine. I think the 3rd server you mentioned is distributor. You
can setup the distributor on the same server with the publisher, so you
don't need a third machine.

Yi Chen

[quoted text, click to view]

Lucas Graf
3/7/2006 12:26:50 PM

Ok. That makes sense.

I have been messing around trying to set it up today, and am still lost.
Currently the 2 servers are out of sync. Both have data the other doesn't.
What do I need to do to get them both to have the same data now, and then
keep them replciating from here on out?

[quoted text, click to view]

umeshkkamath NO[at]SPAM yahoo.com
3/8/2006 1:16:24 AM

[quoted text, click to view]
Paul Ibison
3/8/2006 8:22:39 PM
Lucas,
presumably you have initialized the subscriber and are using merge
replication? If so, you just need to synchronize the subscriber to have the
data merged. You'll need to consider who should win conflicts (publisher by
default) and if conflicts should be allowed (filtering).
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Lucas Graf
3/8/2006 9:37:23 PM
Ok.
I got this far and was tentative on going further. I will keep trucking and
see what else may come up that causes issues. Thanks for the help so far, I
hope to report back a positive experience.


[quoted text, click to view]

Lucas Graf
3/9/2006 1:40:50 PM
I guess I am still confused w/the whole publisher/distributor thing.

Since I want both servers to merge both of their data are they both set to
publishers and distributors? Or is only 1 a publisher and both distributors
and subscribers?

So confused.. :(


[quoted text, click to view]

Lucas Graf
3/9/2006 4:59:31 PM
Ok.

ServerA
I have set him to a Distributor, Publisher and set the Database i want to
publish to the other server as the "push" datatabase. All seems good on
ServerA.

ServerB
Not sure what to do here so its data gets pushed to ServerA to be merged
there as well. Everything I try i end up getting the error "You cannot
create a merge replicaion in database xxxc. The database contains one or
more merge subscritptions that are anonymous or that use the Priority of the
Publisher when resolving conflicts."


[quoted text, click to view]

Lucas Graf
3/9/2006 5:28:58 PM
Maybe Bidirectional Transactional Replication is more what I am looking for?

[quoted text, click to view]

Paul Ibison
3/10/2006 9:09:08 AM
Lucas,
this thread is becoming a bit too wide so let's take a step back. Can you
explain what are the business requirements in some detail. You have data on
Server A and you want to replicate it to server B. Can both servers change
the data (presumably yes). Can they change the same data? Are they always
connected, or server B is sometimes offline? What degree of latency can you
afford? etc
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

AddThis Social Bookmark Button