Home Forums Article Discussions Article Discussions by Author Discuss content posted by John Moreno @@Error and sp_rename RE: @@Error and sp_rename
Chad Crawford
SSChampion
Points: 11610
More actions
September 3, 2009 at 12:01 pm
#1048981
I'm going to guess that this happens because sp_rename has a RETURN 1 right after the RAISERROR to break out of the procedure and the RETURN succeeds, resetting the value of @@ERROR before the procedure completes.