Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Adding 3rd server to bi-directional replication configurat..

 
   Database Help (Home) -> Replication RSS
Next:  INSERT THROUGH SSIS  
Author Message
stevehunter_1

External


Since: Mar 02, 2008
Posts: 7



(Msg. 1) Posted: Mon Jun 30, 2008 9:31 pm
Post subject: Adding 3rd server to bi-directional replication configuration
Archived from groups: microsoft>public>sqlserver>replication (more info?)

I have 2 servers that fully replicate a large database -- it comprises
of a number of publications (each with a few articles). This works
perfectly.

I want to introduce a third server. This server will subscribe to a
few of the publications, publish/subscribe to 1-2 publications, and do
nothing with a bunch of publications.

How do I set this up?

1. Do you call "sp_addsubscription" for the publications i want to
subscribe to? I assume, i just pick 1 of the 2 existing servers for
@subscriber, right? this basically creates like a "chain". Is this
the way everyone does it? i feel if i sp_addsubscription to both
existing databases, i will get twice the inserts and double the
updates, so i am confused.
2. Do I sp_addpublication and sp_addarticle ONLY for the publications
i will participate bi-directionally ? I guess I am confused what SPs
are required for publish, subscribe, and both. I have only set it up
one way.

My current method is:
sp_replicationdboption 'mydb', 'publish', 'true'
go
sp_addpublication 'mypub', @status='active'
go
sp_addarticle 'mypub', 'tableA', 'tableA'
go
sp_addsubscription @publication='mypub', @article='all',
@subscriber='otherDB', @destination_db='mydb', @sync_type='none',
@loopback_detection='true'


This is what I do for BI-DIRECTIONAL. But if I bring in a third
server and he will be bi-directional for 1 publication and subscriber
only for 3 publications, how do I do this? any help appreciated.
This is in production and company does not have resources of a decent
test environment.

 >> Stay informed about: Adding 3rd server to bi-directional replication configurat.. 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 454



(Msg. 2) Posted: Tue Jul 01, 2008 7:08 am
Post subject: Re: Adding 3rd server to bi-directional replication configuration [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Basically set server A up to replicate to server B and server C.
Set server B to replicate to Server A and C.
Set Server C up to replicate to server B and A.

You will need to set up identity increments of 3 and seeds of 1 on A, 2 on
B, and 3 on C.

Make sure the next assigned identity value will agree with the location
seeds.

<stevehunter_1.TakeThisOut@hotmail.com> wrote in message
news:78e55f7a-a776-4423-b6d6-7f55faa45e8b@w8g2000prd.googlegroups.com...
>I have 2 servers that fully replicate a large database -- it comprises
> of a number of publications (each with a few articles). This works
> perfectly.
>
> I want to introduce a third server. This server will subscribe to a
> few of the publications, publish/subscribe to 1-2 publications, and do
> nothing with a bunch of publications.
>
> How do I set this up?
>
> 1. Do you call "sp_addsubscription" for the publications i want to
> subscribe to? I assume, i just pick 1 of the 2 existing servers for
> @subscriber, right? this basically creates like a "chain". Is this
> the way everyone does it? i feel if i sp_addsubscription to both
> existing databases, i will get twice the inserts and double the
> updates, so i am confused.
> 2. Do I sp_addpublication and sp_addarticle ONLY for the publications
> i will participate bi-directionally ? I guess I am confused what SPs
> are required for publish, subscribe, and both. I have only set it up
> one way.
>
> My current method is:
> sp_replicationdboption 'mydb', 'publish', 'true'
> go
> sp_addpublication 'mypub', @status='active'
> go
> sp_addarticle 'mypub', 'tableA', 'tableA'
> go
> sp_addsubscription @publication='mypub', @article='all',
> @subscriber='otherDB', @destination_db='mydb', @sync_type='none',
> @loopback_detection='true'
>
>
> This is what I do for BI-DIRECTIONAL. But if I bring in a third
> server and he will be bi-directional for 1 publication and subscriber
> only for 3 publications, how do I do this? any help appreciated.
> This is in production and company does not have resources of a decent
> test environment.

 >> Stay informed about: Adding 3rd server to bi-directional replication configurat.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL 2000 bi-directional replication - Hi, I'm looking for some references to setting up multi-master replication for sql 2000. I've found a couple references, but not exactly what I need. I'm looking for how to setup custom stored procedure, how to grab ownership on one side before....

adding new subscriber to existing replication - We have replication setup already (bi-directional). How can I add JUST a "subscriber" to the replication? I want to do this with T-SQL. There does not seem to be any documentation that says "here are the steps to just add a subscriber i...

Adding a column to tables in merge replication. - Hi, we need to add a column to the table that is used as the subscriber table in a merge replication, will this break the replication. We also need to add a column to the table that is used as the publisher table in a merge replication, will this also...

Changing an article from download-only to bi-directional - I have a merge replication set up and I need to change one of the articles from download only to bi-directional. I tried doing this through SSMS and marked subscriptions for reinitialisation and recreated the snapshot. However, when I tried to synchronis...

SQL Server to MySQL replication - We use replication today and we have around 10 subscribers that are read only copies. As we are trying to save costs, I want to look into the feasibility of replicating from SQL Server to MySQL similar to transactional replication i.e. in near real..
   Database Help (Home) -> Replication All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]