![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I attempt to manage Transactions in a WHILE LOOP @@TRANCOUNT is off. I obviously do not understand error handling as I should. In the loop below where does the point of execution move to after an error? RESULT: Server: Msg 266, Level 16, State 1, Procedure flowcontrol_test, Line 111 Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1. |
|
-- X Doesn't Exist. Where does the point of execution go??? UPDATE X SET update_dtm = @dateTimeStamp WHERE v = @V |
![]() |
| Thread Tools | |
| Display Modes | |
| |