Discussion

5
Replies
2514
Views
AnirvanD Member since 2015 4 posts
Virtusa Consulting Services Pvt. Ltd.
Posted: 5 years ago
Last activity: 2 years 8 months ago
Closed

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.

Moderation Team has archived post
Share this page LinkedIn