I need to configure merge replication between 2 databases. These databases have foreign key integrity, which makes the replication not work, so I resorted to:
- Dropping all FKs on subscriber database,
- Replicating, and
- Recreating the FKs.
This however leaves the subscriber database vulnerable to FK violations.
So my questions are:
- Does the replication lock the subscriber database, raise a transaction, and render the database unusable in any way during the process?
- If not, could I initiate such a lock manually through TSQL?
- If none of the above is possible, is there something I'm missing?