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
Explain how viewstate is being formed?
Differences between “dataset” and “datareader”.
What are the Types of objects in ASP
How to use push notification?
Explain ViewState?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
What is data control in asp.net?
How do sessions work?
What is difference between session and cookies?
What is the default authentication mode for asp.net?
How many ways are there to maintain a state in .net? What is view state?
What language is asp.net written in?
How could you modify xaml content from javascript?
What are asp.net web forms?
How can you handle unmanaged code exceptions in asp.net?