FOR more information on … SEE … using a warning condition to debug a function Forcing an SQL Warning Condition.