Using TRY and CATCH Blocks in T-SQL September 28, 2017 You can handle errors in T-SQL almost the same way as in C# or Visual Basic. You can make use of a Try and catch block to trap errors and