Is it possible using Try-Catch in SQL Server 2000
?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
@@ERROR
is a variable updated by the SQL Server database engine after each statement is executed on the server. We can see by Print@@Error
No, it is not possible.
This was only from Sql Server 2005
Check TRY...CATCH (Transact-SQL) and check the Other Versions
No Try Catch Was introduced 2005 and later version ,,,you have to use @@Error for handling your exception
Instead you can user
@@Error
..check this article about error handling
No.
Try Catch
block was introduced inSQL SERVER 2005
.Following article shows how you can use
@@ERROR
to check for errors.Understanding error handling in SQL Server 2000