Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-01-21 : 08:45:23
|
| James writes "I am working on a database in which I have multiple nested transactions in a stored procedure which are used to compile a table of data for invoicing. Each statement in this stored procedure, be it an update, insert or delete, is wrapped in a transaction. At the end of the stored procedure, I use a cursor to traverse the newly created rows in the table and update the tax amount on each row (for reasons too long to mention here, I cannot perform this with a bulk query - hence the cursor). Everything works just as it should, however, I am not clear on how I should wrap the cursor in a transaction (or if I can even do this) so that it too rolls back or commits just like my other nested transactions. I have not been able to find anything on this matter that I have been able to understand and implement. Your assistance would be greatly appreciated. Kind regards...I am using:SQL Server 2000 SP3aWindows XP SP2" |
|
|
|
|
|