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 sql data source control in asp.net?

1094


What are the two properties that are common on every validation control?

1098


Explain about asp.net caching?

1090


What is routing in MVC?

1075


What are validator? How do you disable them?

1201


What is difference between abstract class and an interface?

986


What is the part of url?

1020


Explain repository pattern in asp.net mvc? : asp.net mvc

1080


What is asp.net caching?

1055


How to find last error which occurred?

1084


How to you can limit Access to Web API to Specific HTTP Verb?

1248


What is a web server? What are the load limits in it?

1170


In which event of page cycle is the viewstate available?

1074


Which is faster viewdata or viewbag?

1049


What is a 404 redirect?

1098