I'm trying to setup a merge replication between two SQL 2012 servers. I test it on a small dictionary table, which has a primary key (int identity - marked as "not for replication") and is referenced by other tables (they are empty at the moment). Creating a publication causes that a rowguid column is added on the publisher. When I try to create a subscription, during initialization I get: "column 'rowguid' in table 'Test' is invalid for creating a default constraint" error. I do the modifications with UI (Wizards). I assume that SQL server is trying to add a rowguid column on the publisher and it fails. The target table has few records but I think that the same problem is when it is empty. I understand that the table cannot be dropped and created because it is referenced by foreign key. Is there any publication option that can fix this problem? I don't want to drop foreign keys on subscriber.
I also tried to initialize the subscriber with a backup but it seems that the rowguid column is not included in the backup.
Mark