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

What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

1059


How to delete all rows with truncate table statement in ms sql server?

1045


What is data compression?

1064


What are different types of data sources?

1079


whats new about truncate in sql server 2008?

2549


How can we delete Duplicate row in table?

1110


What is temporal data type?

963


How to return the date part only from a sql server datetime datatype?

1162


Is it possible to update the views? If yes, how, if not, why?

1080


Can two tables share a primary key?

1071


What happens to a statement batch if there is a compilation error?

1009


What are the rules to use the rowguidcol property to define a globally unique identifier column?

1073


What is lock escalation and what is its purpose?

1024


whats the maximum size of view state??

2248


what are triggers? : Sql server database administration

951