Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exception Handling in Sql-Server

Status
Not open for further replies.

liontiger

Programmer
Feb 16, 2001
4
US
The exception handling in oracle is different from the way it is done in sql-server.
If we need to trap errors in sql - server we use @@error,
The problem with this method is that after each statement we have to explictly mention the condition.

In oracle at the end of the pl/sql block we use
Exception
when notfound
-----or
when others
--------

Is there any way in sql-server to trap the errors similar to this i.e error trapping at a broder level.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top