@@ERROR variable in SQL SERVER 2005

The @@ERROR automatic variable is used to implement error handling code. @@ERROR variable contains the error ID which is produced by the last SQL statement executed during a client's connection. When a statement executes successfully, @@ERROR set to 0.

No comments:

Post a Comment