$ 0 0 In the AdventureWorks example, @ErrorSave will always return 0 because the statement 'IF (@@ERROR <> 0)' will reset @@ERROR to 0.