SQL Practices

RDBMS Programming

Tune stored procedures with exception handling in SQL Server 2005

Exception handling was widely thought to be one of the weakest aspects of T-SQL script writing. Fortunately, this has changed in SQL Server 2005, which supports structured error handling. This tip focuses first on the basics of the new TRY…CATCH constructs and then looks at some sample SQL Server 2000 and 2005 T-SQL that produces constraint violations using transactional code.

Source: Joe Toscano April 2006

Download & read the full article at:

January 31, 2008 - Posted by Philippe Almog | Stored procedures | , , | No Comments Yet

No comments yet.

Leave a comment