What is RAISEERROR in SQL Server ?

RAISERROR generates an error message and initiates error processing for the session. RAISERROR can either reference a user-defined message stored in the sys.messages catalog view or build a message dynamically.

The message is returned as a server error message to the calling application or an associated CATCH block of a TRY…CATCH construct.



You May Interest

What is a ROLLUP Clause in SQL Server ?

Getting Rows in a Table in Random Order in MS SQL

What is CHECKPOINT Process in the SQL Server ?

What are the Authentication Modes in SQL Server ?

Generating Random Letters in MS SQL