Discussion
Virtusa Consulting Services Pvt. Ltd.
IN
Last activity: 4 Oct 2018 11:08 EDT
Data intigrity during multiple RDB-Save
Hi,
I have a situation where I have to insert data into two tables using RDB-Save. The issue is if second insert fails then the first insert should also be reverted. Basically I don't want to insert data in the first table if the second one fails as it happens during two phase commit. There is a Primary- Foreign Key relation in the tables. Is it possible to achieve this using RDB since RDB commits automatically?
Thanks in advance to all the great minds!
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.