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 difference between table and query?

971


Give some salient points of difference between request processor and request dispatcher.

1058


What is application variable in asp.net?

926


What is the good practice to implement validations in aspx page?

1115


What is a session in programming?

1082


Explain About WebService

1137


What is the appSettings Section in the web.config file?

1073


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

1101


Describe the difference between inline and code behind - which is best in?

1069


What are tuples?

1143


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

1018


Whats the difference between abstract factory pattern and factory pattern?

1019


Where is the view state data stored in asp net?

1024


Explain the advantages of asp.net.

1002


What is a Cookie? Where is it used in ASP.NET?

1096