Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: Monday, July 21, 2014 11:41 PM
Points: 207, Visits: 475
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: Monday, July 21, 2014 11:41 PM
Points: 207, Visits: 475
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: Monday, October 20, 2014 2:56 PM
Points: 835, Visits: 1,191
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: Monday, July 21, 2014 11:41 PM
Points: 207, Visits: 475
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: Monday, October 20, 2014 2:56 PM
Points: 835, Visits: 1,191
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: Monday, July 21, 2014 11:41 PM
Points: 207, Visits: 475
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: Monday, October 20, 2014 2:56 PM
Points: 835, Visits: 1,191
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: Monday, July 21, 2014 11:41 PM
Points: 207, Visits: 475
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
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 3:41 AM
Points: 2,888, Visits: 3,261
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 2014, 2012, 2008 R2, 2008 and 2005. 18 October 2014: now over 31,000 downloads.
Disclaimer: All information provided is a personal opinion that may not match reality.
Concept: "Pizza Apartheid" - the discrimination that separates those who earn enough in one day to buy a pizza if they want one, from those who can not.
Post #1450059
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse