Catching errors raised by SP
Database
3
Posts
3
Posters
0
Views
1
Watching
-
Hi, I am using ASp.NET 1.1 Now when I call a stored procedure from code behind file and the stored procedure raises an error how to catch this error in code behind file Thanks and Regards, Uma
-
Hi, I am using ASp.NET 1.1 Now when I call a stored procedure from code behind file and the stored procedure raises an error how to catch this error in code behind file Thanks and Regards, Uma
Hi you can catch exception by following Catch ex As SqlClient.SqlException
Tushar kothari
-
Hi you can catch exception by following Catch ex As SqlClient.SqlException
Tushar kothari
You can use output paramter, return value or as mentioned SQlexception. I prefer return value as this help me to use customize message from resource file,