Violation of PRIMARY KEY constraint during Merge Replication
问题 I have two identical SQL Server 2005 databases (MYDB_Pub, MYDB_Sub1) where the merge replication was configured and it works fine. Recently we upgraded to SQL Server 2014. To test the replication functionality on the new SQL Server I followed the below steps: Backup the MYDB_Pub on the SQL Server 2005. Restore the MYDB_Pub on the SQL Server 2014 with the same name. Restore the same MYDB_Pub on the SQL Server 2014 with name 'MYDB_Sub1'. Configure Merge Replication on a single table 'Country'.