﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 High Availability  / Peer-to-peer replication and identity columns / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 12:36:42 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Peer-to-peer replication and identity columns</title><link>http://www.sqlservercentral.com/Forums/Topic1409574-1549-1.aspx</link><description>[quote][b]EdVassie (1/28/2013)[/b][hr]What you want to do sounds similar to what we have done.We use P2P but send all our updates to a single node, which is identified using a DNS vanity name.  At failover time we update the vanity name and our apps then connect to the new master node.There one problem we have had to overcome.  P2P does not update the identity seed value on receiving nodes.  This means that after failover the new master node will want to insert records using an identity value that is already in use.We have overcome this by writing some code that keeps track of identity value high-water mark, and automatically applying appropriate CHECKIDENT RESEED commands to the new master node at failover.[/quote]This is something that I will likely need to do as well. Now at least  I have an idea to start with. Thanks for the feeback.</description><pubDate>Fri, 01 Feb 2013 09:10:06 GMT</pubDate><dc:creator>jchamiak</dc:creator></item><item><title>RE: Peer-to-peer replication and identity columns</title><link>http://www.sqlservercentral.com/Forums/Topic1409574-1549-1.aspx</link><description>What you want to do sounds similar to what we have done.We use P2P but send all our updates to a single node, which is identified using a DNS vanity name.  At failover time we update the vanity name and our apps then connect to the new master node.There one problem we have had to overcome.  P2P does not update the identity seed value on receiving nodes.  This means that after failover the new master node will want to insert records using an identity value that is already in use.We have overcome this by writing some code that keeps track of identity value high-water mark, and automatically applying appropriate CHECKIDENT RESEED commands to the new master node at failover.</description><pubDate>Mon, 28 Jan 2013 06:18:06 GMT</pubDate><dc:creator>EdVassie</dc:creator></item><item><title>RE: Peer-to-peer replication and identity columns</title><link>http://www.sqlservercentral.com/Forums/Topic1409574-1549-1.aspx</link><description>[quote][b]jchamiak (1/21/2013)[/b][hr] In my implementation I would think that it would be desirable to have no identity ranges configured and to have replicated commands update the identity values so that the primary and secondary sites are in sync.[/quote] In transactional replication every article (table ) should have PK (in this case identity column as PK), So in  P2p replication both side's table will have same schema (same identity column..same PK). so i dont think you can implement that , but better TEST what you think.</description><pubDate>Tue, 22 Jan 2013 05:02:42 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item><item><title>Peer-to-peer replication and identity columns</title><link>http://www.sqlservercentral.com/Forums/Topic1409574-1549-1.aspx</link><description>All of the articles regarding identity columns for peer-to-peer replication talk about setting identity ranges when writing to multiple members at the same time. In my case, It's going to be configured as a DR solution so only the primary site will receive updates unless there is a need to fail over to the secondary site which will be rare. Only one member will ever be making updates at any given time. In my implementation I would think that it would be desirable to have no identity ranges configured and to have replicated commands update the identity values so that the primary and secondary sites are in sync. Does this sound like a reasonable configuration?</description><pubDate>Mon, 21 Jan 2013 08:12:12 GMT</pubDate><dc:creator>jchamiak</dc:creator></item></channel></rss>