Interview Preparation mode beta
Funny Facebook Status Funny Facebook Status
Enter your email address

How do you code error handling logic in your stored procedures?

2 Answers

Nice?Vote!
*    Use the TRY and CATCH commands with BEGIN and END blocks.
*    The error handling can be consolidated by creating a single stored procedure to write the data to a centralized table.
*    Use the RAISERROR command.
answered 1 year ago by R (19,530 points)
Nice?Vote!
am all for abstractions and separations of logic. I definately do not believe that T/SQL or PL/SQL are expressive enough languages to describe that logic. Sticking critically meaningful code in the DB from what I've always encountered leads to the Clusterous Fucokous Anti-pattern.
answered 1 year ago by GabrieFinch (220 points)

Related questions