Press "Enter" to skip to content

The Limitations of TRY-CATCH in SQL Server

Brent Ozar tries to catch but lets it slip through his fingers:

If you’re using TRY/CATCH to do exception handling in T-SQL, you need to be aware that there are a lot of things it doesn’t catch. Here’s a quick example.

Let’s set up two tables – bookmarks, and a process log to track whether our stored proc is working or not:

Read on for the example.