I have 2 tables which tab B depends on the record on tab A. In publisher, records are generated to tabA before some audit information record to tabB. In subscriber, there is replication error that the trigger in tab B couldn't find the corresponding record in tab A and cause the transactional replication error. And I found the comand_id within the same xact_segno of record in tab B is smaller than that of record in tab A. Does it mean the data in tab B replicate before tab A?
Also, how to know the replication sequence to the subscriber?
Thanks in advance!
You may want to check your trigger to see which table is committing first. Transactional replication will replicate the commands/transaction in the order they were applied.
No comments:
Post a Comment