Share via

cascading updates does not work, leaves inconsistency

Jrmkjrm 20 Reputation points
2024-01-09T08:11:07.67+00:00

Hi,

We use a cascading update between two tables, from a header table to a transaction table. (It's convenient for us so please do not discuss this design, even if not "correct" normalized.) It is set as "Enforce for replication" and "Enforce foreign key constraint".

A few time we noticed that a values differ between the two tables. A header number that is replicated to transaction table (it is never <1 and it never changes in header table) is suddenly set to 0 in the transaction table.

How it is possible that the database accept this severe inconsistency? Why isn't the transaction rolled back?

/Jerome

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.