I always thought there wasnt a way to have raiserror return a custom code other than 50000 without storing the message using sp_addmessage, but this works. Was it always this way? I dont see this usage (without parens) documented in BOL, or am I overlooking something?declare @ErrorMessage varchar(max), @ErrorNumber intbegin try raiserror 50005 'yak' end trybegin catch select error_message(), error_number () select @ErrorMessage = error_message(), @ErrorNumber = error_number() raiserror @ErrorNumber @ErrorMessageend catch