Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tranasaction on sql server 2000

Status
Not open for further replies.

3270

Programmer
Sep 8, 2005
11
DK
Hi got a problem with some transactions i hope someone kan show me a workaround

If got the following sql code

begin transaction A
DO SOMETHING

begin transaction b
insert test values ("AAAA") -- Please keep
commit transaction b

DO SOMETHING MORE
rollback transaction a

Is there a way to keep the the insertet line in the table test?

Kind regards
3270

 
Why are you rolling back trans a? Since trans b is nested, the inserted row will be rolled back.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top