I have several Merge Replication instances in production on SQL 2008 R2. One of them has started to behave oddly in that it appears to attempting to upload the children tables before it uploads the parent. This fails due to the foreign key of the children not having a valid parent row to reference. Eventually the parent row is uploaded and then the children are retried, but often this can take an hour or so of retrying the rows in the children tables before the parent row is uploaded. How can I track down and fix what is wrong with my merge replication so that it consistently uploads the parent rows before the children?
↧