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 / js_m
c
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is different authentication mechanisms used in ASP.NET?
How do we access view state value of this page in the next page?
What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?
explain code with multi inhertance
Explain the significance of routing? : asp.net mvc
Is react a template engine?
Explain the difference between server control and html control.
Which is better php or asp.net?
what is AutoEventWireUp and what is the use of This property explain in details?
What is paging in context of Memory?
Explain file-based dependency and key-based dependency.
Explain culture and uiculture values.
What is clickid?
Where do we store our connection string in asp.net application?
Who can consume WebAPI?