Mega Code Archive

 
Categories / MSSQL Tutorial / Transact SQL
 

RAISERROR syntax

RAISERROR ({msg_id | msg_str}, severity, state[, argument1 [, argumentn]]) [WITH LOG]|[WITH NOWAIT] RAISERROR Options Value      Description LOG                          Logs the error in the SQL Server error log and the application log. NOWAIT                       Sends messages immediately to the client. SETERROR                     Sets @@ERROR value to msg_id or 50000, regardless of the severity level.