Viewing 3 posts - 13,456 through 13,459 (of 13,459 total)
I would suggest using XACT_ABORT; it will automatically rollback a transaction, and stop further statements from executing in the transaction when an error is encountered:
SET XACT_ABORT ON
BEGIN TRAN -- with...
Lowell
May 5, 2003 at 8:38 am
@@fetch_status is the problem here; it doesn't revert back to the outer loops 'previous' fetch status after it complete's the inner loop.
wouldn't @@fetch_status only allow the inner loop to run,...
Lowell
March 27, 2003 at 10:05 am
I just contributed a script that does this; everyone always points at tools to do it, but I felt it was a good challenge to try and write a SQL...
Lowell
March 27, 2003 at 9:22 am
Viewing 3 posts - 13,456 through 13,459 (of 13,459 total)