See Also
You are here: SQL Reference > Control Flow Operators > RAISE EXCEPTION
ContentsIndexHome
PreviousUpNext
RAISE EXCEPTION
RAISE EXCEPTION

Raises an exception. The command will terminate query execution, abort current transaction and will send a user defined error message back to the client. The command can be used in a SQL batch and inside a stored procedure. 

 

Syntax  

RAISE EXCEPTION string