Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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.

Answer Posted / veeresh kethari

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what do you understand by a view? What does the with check option clause for a view do?

1009


what purpose does the model database serve? : Sql server database administration

963


Can you insert NULL in unique column?

1146


What are views used for?

1008


Explain about merge replications?

1005


Is t sql the same as sql server?

955


Explain what role entity and relationship play in an ER diagram.

1063


What is the difference between function and stored procedure in sql server?

1053


What are pessimistic lock and optimistic lock?

1064


What is join and name different type of joins?

1038


What do you mean by tablesample?

1070


What is the sql case statement used for?

1087


What is database dimension? : sql server analysis services, ssas

1069


Please explain what is “asynchronous” communication in sql server service broker?

922


How to get @@error and @@rowcount at the same time?

1023