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

List down the sequence of methods called during the page load.

981


Which two new properties are added in asp.net 4.0 page class?

971


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

1113


How do u deploy your asp.net application?

1101


How can you make sure that web api returns json data only?

1038


How tooltip is set through code-behind in ASP.NET?

1141


What is the difference between asp.net and mvc?

1172


How do you implement postback with a text box?

1041


What is application session?

1043


What is marshalling ? Is it a part of asp.net ?

1141


Distinguish between Server-side and Client-side code?

1157


Define web services in asp.net.

1128


Define the types of configuration files.

1033


How Session use Cookies in State Management?

1123


What are sql joins?

1057