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

Orphaned Foreign Key records in Child table Merge Replication

$
0
0

We have merge Replication setup between 2 datacenters US USQ & Europe. EUC. 
USQ is the publisher while EUC is subscriber. The merge agent runs every 10 min. 

All our Fkeys are set to NOT FOR REPLICATION.

We have a situation where parent record in USQ (publisher) gets deleted while the child records in EUC(subscriber) are created during the same replication cycle. 

The master record in USQ is propagated and the record is deleted from both publisher & subscriber. 

Since the Fkeys are set to NOT FOR REPLICATION, the child records created in subscriber are sent to publisher without generating any errors or conflicts. As a result I have orphaned records in both Publisher & Subscriber. 

Everything works by design, I am checking to see if this behavior can be corrected by the processes somehow?




Viewing all articles
Browse latest Browse all 4054

Trending Articles