I have two environments: dev and test. Dev has a single SQL instance. Test has three which use merge replication.
When I use Schema Compare between dev and test, every table is always flagged as different because the tables in Test have a few replication artifacts:
- A generated unique ID for replication:
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [MSmerge_df_rowguid_DDDF85B24558D414B8FD278B2219C33A] - The primary key marked as
NOT FOR REPLICATION(I see there is an option to ignore this in the General tab in Schema Compare Options) - CONSTRAINT
[repl_identity_range...]that requires the primary key be within the range assigned to that instance
Is there a way to ignore the rowguid column and the repl_identity_range_... constraint when running a schema compare?