Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Not retaining Identity in SQL Server Merge Replication

$
0
0

Hi,

I have implemented Merge Replication in SQL Server, but here I am getting one problem-

After implementing replication it is not retaining next identity for identity column.

Example-

Publisher Table- (tab_Emp)

Id (Identity field) 

1

2

3

After Replication Subscriber Table - (tab_Emp)

Id (Identity field) 

1

2

3

Now, when I am checking for next Identity value in subscriber tablethen it is -1,  it should be 4.

Please suggest me possible solution to replicate identity with next value.

Thanks in advance.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>