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

Benefits of Using Stored Procedures in MS SQL

What are The Different Backup Options With SQL Server ?

How to Learn MS SQL Server Version

What is NOLOCK Hint in SQL Server ?

Getting List of System Hard Disks with Free Space in MS SQL Serve ...