Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Peer-Peer replication Expand / Collapse
Author
Message
Posted Thursday, May 2, 2013 4:49 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, July 21, 2016 1:53 PM
Points: 254, Visits: 728
I have just created peer to peer replication on couple of test server.

Let's say TestServer1 and TestServer2.

And test database called Test_Peer.

First i have create couple of tables and create new Peer-Peer Replication from TestServer1-> TestServer2.

Publication: TestServer1_Peer_TestServer2_SP1.

My question is, what if i have created new table and want to put them into Peer-Peer replication.

Do i need to create new publication, configure peer-peer technology and also do i need to take backup every time (After creating table) before putting into peer-peer replication?
Post #1448760
Posted Thursday, May 2, 2013 6:16 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, July 21, 2016 1:53 PM
Points: 254, Visits: 728
Can anyone please reply?
Post #1448776
Posted Thursday, May 2, 2013 7:11 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 8:28 AM
Points: 863, Visits: 1,309
Use sp_addarticle on both publisher and subscriber because in P2P all servers are publishers AND subscribers.
Post #1448801
Posted Friday, May 3, 2013 12:51 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, July 21, 2016 1:53 PM
Points: 254, Visits: 728
Thanks for reply.

Can i create new publication and put table into newly created publication.

My only concern is when i configure Peer-To-Peer Topology there is an option,

Specify how the new peer databases was initialized.

1) I created the peer database manually or i restored a backup of the original publication databases which has not been changed since the backup was taken.

2) I restored a backup of the original publication database and the publication database was changed after the backup was taken.

Does that mean i have to take backup every time when the the new table is created?

Which option should i go for?
Post #1449063
Posted Friday, May 3, 2013 4:26 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 8:28 AM
Points: 863, Visits: 1,309
No. For the first time you can set up replication initiated from backup. Then use sp_addarticle for adding new tables.
Post #1449116
Posted Friday, May 3, 2013 4:31 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, July 21, 2016 1:53 PM
Points: 254, Visits: 728
Initially,i have setup the P2P replication by taking backup and then restore them to other TestServer. But can i add new publication or i just have to use existing publication or i just have to use existing publication all the time for adding articles? This is the my main concern.

Post #1449117
Posted Friday, May 3, 2013 6:46 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 8:28 AM
Points: 863, Visits: 1,309
I am not sure what is your question. But what I am trying to say that you do not need to create publication every time you want to add articles. You can use existing publication. Read some BOL.
Post #1449171
Posted Friday, May 3, 2013 9:45 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, July 21, 2016 1:53 PM
Points: 254, Visits: 728
My question is can we create new publication in P2P or we need to use already created publication all the time for adding new articles.
Post #1449385
Posted Tuesday, May 7, 2013 4:58 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, July 22, 2016 2:11 AM
Points: 3,032, Visits: 3,704
You cannot put a table into P2P until it exists on all P2P nodes. This means you must run the table create script on all the nodes, and only after that is done you can add the table into P2P.

You can change structure of a table already in P2P, as P2P can replicate the DML.


Original author: SQL Server FineBuild 1-click install and best practice configuration of SQL Server 2016, 2014, 2012, 2008 R2, 2008 and 2005. 11 May 2016: now over 37,000 downloads.
Disclaimer: All information provided is a personal opinion that may not match reality.
Quote: "When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist." - Archbishop Hélder Câmara
Post #1450059
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse