How to handle errors in Stored Procedures. I want to display
a message to the user in the .aspx page that is calling a
stored procedure in it's code behind. please help me.
Answers were Sorted based on User's Feedback
Answer / bru medishetty
You can use RaiseError or use the TRY CATCH Programming in
the Stored Procedure Code.
Thanks,
Bru Medishetty
www.LearnSQLWithBru,com
Is This Answer Correct ? | 2 Yes | 0 No |
With simple example:
begin try
declare @int int
set @int='select 1/0'
end try
begin catch
print 'Error detected with error number -'+convert(char
(10),@@error)
end catch
Is This Answer Correct ? | 1 Yes | 0 No |
Tell me what do we need queues in sql service broker?
Can we use where and having clause together?
What authentication modes does sql server support?
What is a trigger and types of a trigger?
What is use of @@ spid in sql server?
What is Check point? Explain in Brief what it will do?
Give me any three differences between Truncate and Delete.
can anybody tell us, how to select 2nd max salary from table. my id is ashish.akk@gmail.com
What is data file in computer?
Define tool Manage Statistics in SQL Server 2000 query ?
How to drop an existing user defined function in ms sql server?
What are transactions in sql?