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...

You are using the try? catch block seen in the following
code segment, but no exceptions are ever caught by the catch
block. What is the problem?

SqlConnection cn =new sqlConnection(strSQL);
SqlDataSet ds;
try
{
cn.open(); //perform the data processing steps
??..
} catch (OleDbException e) {
?..
}

a) The exception class is wrong; it should be sqlErrors.
b) The exception class is wrong; it should be
sqlSyntaxExceptios.
c) The exception class is wrong; it should be sqlExceptions.
d) The exception class is wrong; it should be sqlExcptions.

Answer Posted / nithya

C

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is base class of .net?

1006


Explain about asp.net caching?

1090


What types of data validation events are commonly seen in the client-side form validation?

1026


Describe the application event handlers in ASP.NET?

1088


What is a 307 redirect?

946


how to elimainte the similar data from the different tables

2220


List the advantages and disadvantages of user control an custom control?

1010


What is the benefit of WebAPI over WCF?

1061


Give an example of cookie abuse.

1120


Why do we use datasource in asp.net?

1009


Explain login control and form authentication.

1060


What is asp.net and ado net?

1055


How do u deploy ur project?

2747


What are the modes of updation in an updatepanel?

1013


How can we implement a identity (sql server) call in an asp.net page?

1067