January 2008
Mon Tue Wed Thu Fri Sat Sun
    Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Day January 5, 2008

SQL Server 2005 error handling

Over time, I’ve had the need for more and more robust error handling in SQL. Initially I accomplished this with transactions, but eventually I needed something more. Finally, I came up with a template that I have started to use every time I start writing a new SQL file.

[viewcode] src=”http://facility9.com/wp-content/uploads/2008/01/sampleerrors.sql” showsyntax=”no” link=”yes” showsyntax=”no”[/viewcode]

This site is protected with Urban Giraffe's plugin 'HTML Purified' and Edward Z. Yang's Powered by HTML Purifier. 226 items have been purified.