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

I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

535


Explain how dot net compiled code will become platform independent?

499


How many ways are there to maintain a state in .net? What is view state?

585


What is content page in asp net?

497


Why is global asax is used?

604






What is asp.net web pages?

523


What is the difference between abstract class vs interface? Can give me the real time examples?

483


What is use of Master Page in ASP.NET web pages?

619


What is dynamic web page with example?

517


Why do we use asp.net?

580


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

1561


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

622


What is __ requestverificationtoken?

544


What is the difference between ASP Session State and ASP.Net Session State?

575


What are the components of ado.net?

527