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
Is asp.net outdated?
What is the state management in asp.net?
Difference between response.redirect and server.transfer?
What are asp.net web forms?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
How to implement Authentication and Authorization?
In order to get assembly info which namespace we should import?
What are the data controls available in asp.net?
What is the difference between dispose() and finalize()?
What is in a session cookie?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?
Explain the advantages of caching?
In early binding will the method invoked on com component will verify it?s existance in the system or not ?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?