TRY/CATCH - The Great Way to Handle Exceptions in SQL 2005/8
The goal of this post is to explain how to handle errors thanks to a useful T-SQL functionality, available since SQL 2005 onwards, that developers are already used to – and similar to how exceptions are handled in the Visual Studio environment.