SQL Exception Handling in .NET
Sep.08, 2004 in
Geeky/Programming
In .NET , Microsoft introduced the Try, Catch, Finally exception handling. In all books and examples I have seen, you catch an exception like so:
Try
…some code
Catch ex as Exception
…some error handling code
End Try
Well, what happens when you are catching a SQL Exception?
Try
…some code
Catch sEx as SqlException
…some error handling code
End Try
Is Microsoft trying to tell us something here??
Simlar Posts

Leave a Reply