stored procedure exception handling in asp.net
Posted
by anay
on Stack Overflow
See other posts from Stack Overflow
or by anay
Published on 2009-11-27T17:11:49Z
Indexed on
2010/05/09
20:48 UTC
Read the original article
Hit count: 470
Do i need to use try catch in my stored procedure to know where exactly in my procedure error has occured or can i achieve the same if i useSqlConnection.BeginTransaction
in my ASP.NET form or simple try catch may be...???
I tried implementing try catch in my stored procedure..i m using sql server 2005 but it does not know TRY and CATCH keywords or ERROR_MESSAGE() function...i also installed sql server 2005 service manager but still it does not work..
if an error is thrown using RAISERROR
method will the exception will be shown in my ASP.NET form??
© Stack Overflow or respective owner