How to implement nested transaction
- From: "Jack Zhong" <nospam_jz@xxxxxxxx>
- Date: Wed, 21 May 2008 04:20:51 +0800
Hi, all,
In some cases we need insert data into several tables, for example, after we placed an order, we may insert record into table Order and table OrderDetails, or any other related tables, what I want is: if there was an exception threw out during we insert data into whichever table, all the insertion to those tables should be rolled back.
The underlying database is MS SQL Server 2005 express. I wrote some nested trans scripts in the query builder, but only the table threw out exception had been rolled back, other tables would be inserted and not rolled back at all.
Any instruction would be greatly appreciated.
Jack
.
- Follow-Ups:
- Re: How to implement nested transaction
- From: Arthur Hoornweg
- Re: How to implement nested transaction
- From: Kevin Frevert
- Re: How to implement nested transaction
- Prev by Date: Re: Append and post - with standardvalues
- Next by Date: Re: How to implement nested transaction
- Previous by thread: ADOTable IsIndexField not returning correct result
- Next by thread: Re: How to implement nested transaction
- Index(es):
Relevant Pages
|