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 appSettings Section in the web.config file?

1059


Distinguish between Server-side and Client-side code?

1080


What is application variable in asp.net?

915


Can we have a web application running without web.config file?

983


Why viewstate is used in asp.net?

1016


Explain about ASP.NET?

1067


What does occur first in ASP.Net, Authentication or Authorization?

1029


What is manifest in .net framework?

1011


Why we use content place holder in asp.net?

1027


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6619


What should you do is you want to remove an existing component but would like to make some funtionalities?

1934


Define tracing.

1108


What is a global postback url?

942


What is the use of ASP.NET routing?

1049


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

3019