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

Is asp.net outdated?

532


What is the state management in asp.net?

556


Difference between response.redirect and server.transfer?

552


What are asp.net web forms?

523


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

1870






How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

3413


How to implement Authentication and Authorization?

567


In order to get assembly info which namespace we should import?

528


What are the data controls available in asp.net?

509


What is the difference between dispose() and finalize()?

501


What is in a session cookie?

542


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

577


Explain the advantages of caching?

534


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2142


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

971