Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Try Catch in SQL Server 2000?

Is it possible using Try-Catch in SQL Server 2000?

like image 627
Soner Gönül Avatar asked Dec 24 '10 06:12

Soner Gönül


2 Answers

No, it is not possible.

This was only from Sql Server 2005

Check TRY...CATCH (Transact-SQL) and check the Other Versions

like image 146
Adriaan Stander Avatar answered Sep 29 '22 20:09

Adriaan Stander


No. Try Catch block was introduced in SQL SERVER 2005.

Following article shows how you can use @@ERROR to check for errors.

Understanding error handling in SQL Server 2000

like image 23
decyclone Avatar answered Sep 29 '22 20:09

decyclone