Close popover
Anirvan Das (AnirvanD)
Virtusa Consulting Services Pvt. Ltd.
Senior Consultant
Virtusa Consulting Services Pvt. Ltd.
AnirvanD Member since 2015 4 posts
Virtusa Consulting Services Pvt. Ltd.
Posted: September 3, 2015
Last activity: October 4, 2018

Data intigrity during multiple RDB-Save


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.

Moderation Team has archived post