Subject | Re: [firebird-support] how to use a transaction in SP |
---|---|
Author | Milan Babuskov |
Post date | 2003-07-01T13:13:26Z |
Ghanshyam wrote:
SP is already inside a transaction, and it cannot start another one...
I'm not sure about version 1.5, I think there is a mechanism like
Checkpoints, so it can do exaclty what you want (instead of starting new
trans. you declare a checkpoint, and you can later rollback all changes
made since it was declared - so it basically almost the same as starting
a new trans.)
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net
> Hi,AFAIK, in FB 1.0 you can't.
> Can anybody tell me, how to use a transaction in a SP.
> As, it is done in SQL server i.e. begin/commit/Rollback transaction
SP is already inside a transaction, and it cannot start another one...
I'm not sure about version 1.5, I think there is a mechanism like
Checkpoints, so it can do exaclty what you want (instead of starting new
trans. you declare a checkpoint, and you can later rollback all changes
made since it was declared - so it basically almost the same as starting
a new trans.)
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net