The RAISEERROR function
raises a user-defined error. Users can define a condition and then
use RAISEERROR to stop the job and return an error message when the
condition occurs. This is useful for evaluating problems unique to
an installation. The user can then search for the error message to
determine whether the associated condition was responsible for stopping
the job.