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 sql exceptions?

Answer Posted / minhajul islam

using try block we can trap the error as follows

try
{
//Datanase coding
}
catch(SQLException e1)
{
//Here you will get SQL Error message in e1 instance
}

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 the postback property in asp.net?

930


What is the difference between visual basic and asp.net?

980


What is base class of .net?

911


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

1874


How can we pass info between 2 asp.net pages?

1012


What is the significance of attaching a profile while creating a user?

965


Is it possible to write code in many languages in one asp.net project?

971


What are the advantages of passport authentication?

954


Why is xap important?

950


To display data in a Repeater control which template you provide?

985


where can i gather the materials for MCP certification

5202


What is the current version of asp.net?

942


IN an ASP.NET Web application if there is any error, how can you debug?

1017


What is the file through which you can customize your asp.net application?

1038


What is difference between or and orelse?

927