I'm having an issue on settin up SqlException.Number
On my Stored Proc i'm raising an error
--@number = 50001
RAISERROR(@number, 16, 1) -
I should expect that the Error_Number()
should be @number
but I always get 18054
Is there something wrong with my RAISERROR
?