Adding a message to the sysmessages table using the REPLACE option. : sp_addmessage « System Functions « SQL Server / T-SQL Tutorial






3>
4>
5> sp_addmessage 50001, 12, 'The specified value for %s was invalid.'
6>               , US_English, TRUE, REPLACE
7> GO








25.18.sp_addmessage
25.18.1.Adding Entries to sysmessages
25.18.2.Adding a message to the sysmessages table using the REPLACE option.
25.18.3.Adding a custom error