Rollback transaction inside cursors and inside transactions
问题 I'm pretty new in T-SQL and I'm in trouble with some huge scripts with transactions, cursors and storage procedures. So, my code is something like this (this code is just an example of the structure of my scripts, in fact I have multiples procedures inside OuterProc cursor and multiple operations inside InnerProc cursor): create proc InnerProc as begin declare @Id int begin tran declare mycursor cursor local static read_only forward_only for select Id from MyOtherTable open mycursor fetch