Error Handler « Transact SQL « SQL Server / T-SQL Tutorial






20.20.Error Handler
20.20.1.This example is a simple stored procedure using a generic approach to error handling: