Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why finally block is not given in SQL SERVER?

All language like C#,VB.NET all have try catch finally block but SQL server only have try and catch only why not finally block is given is there any specific reason for that?

like image 284
Pradeep Gaur Avatar asked Sep 11 '10 05:09

Pradeep Gaur


1 Answers

There are many other problems with TRY...CATCH block, such as you cannot rethrow an error exactly as you caught it, so I would use C# error handling for anything complex. I have wrote a whole book chapter on it, you can download a free pdf here

like image 180
A-K Avatar answered Oct 20 '22 00:10

A-K