Additional SQL Server features and topics not covered by specific categories
cascading updates does not work, leaves inconsistency
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