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.
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.