Re: Named Transactions
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 03/01/04
- Next message: Uri Dimant: "Re: Common values"
- Previous message: Michas Konstantinos: "Check Syntax Issue"
- In reply to: Amin Sobati: "Re: Named Transactions"
- Next in thread: Amin Sobati: "Re: Named Transactions"
- Reply: Amin Sobati: "Re: Named Transactions"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Mar 2004 14:17:03 +0100
That is expected. You cannot do rollback using a transaction name to a BEGIN
TRAN. You have to do such rollback to a save point, created with SAVE TRAN.
-- Tibor Karaszi, SQL Server MVP Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver "Amin Sobati" <amins@morva.net> wrote in message news:uRlT%23Y4$DHA.3056@TK2MSFTNGP11.phx.gbl... > David, > My problem is not that 'rollback tran b' rolls the whole of transactions > back, but I get this error: > > Server: Msg 6401, Level 16, State 1, Line 3 > Cannot roll back b. No transaction or savepoint of that name was found. > > Thanks, > Amin > > > "David Browne" <davidbaxterbrowne no potted meat@hotmail.com> wrote in > message news:uwLovZt$DHA.3536@TK2MSFTNGP10.phx.gbl... > > > > "Amin Sobati" <amins@morva.net> wrote in message > > news:ulUz59g$DHA.2512@TK2MSFTNGP11.phx.gbl... > > > Hi, > > > Please try this one: > > > begin tran a > > > begin tran b > > > rollback tran b > > > rollback tran a > > > > > This is why named transactions don't work: "rollback tran b" rolls back > > "transaction a". There really is only one transaction, and however you > > decorate you rollback, the whole transaction is rolled back. > > > > David > > > > > >
- Next message: Uri Dimant: "Re: Common values"
- Previous message: Michas Konstantinos: "Check Syntax Issue"
- In reply to: Amin Sobati: "Re: Named Transactions"
- Next in thread: Amin Sobati: "Re: Named Transactions"
- Reply: Amin Sobati: "Re: Named Transactions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading