SQL Server will raise errors when the code you have written cannot or should not execute.
For example, a table should not be created if one with the same name already exists. Suppose you have a stored procedure named UpdateOneRecord which changes one record at a time. Continue reading #SqlServer interview question: What is RAISEERROR?