extrobe
1/31/2017 - 2:13 PM

Custom Error Messages

Custom Error Messages

SET @msgdate = @rundate 
RAISERROR ('Processing %s', 0, 1,@msgdate ) WITH NOWAIT
--Custom Error Messages 
 
--To add new custom message... 
sys.sp_addmessage 
 
--To see all messages 
SELECT * FROM sys.messages m