Peer-Peer replication

  • 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?

  • Can anyone please reply?

  • Use sp_addarticle on both publisher and subscriber because in P2P all servers are publishers AND subscribers.

  • 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?

  • No. For the first time you can set up replication initiated from backup. Then use sp_addarticle for adding new tables.

  • 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.

  • 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.

  • 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.

  • 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: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    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

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply