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
How can u debug your .net application?
What are Caching techniques in .NET
Explain the asp.net mvc request life cycle? : asp.net mvc
What is page fragment caching?
How do you identify that the page is postback?
What are server side controls?
What is a page life cycle? What are the events in a page life cycle?
In ViewState How much lifespan items stored?
Explain asp.net web forms.
Describe the .net base class library.
Name the tools or API for developing or testing web api?
Can viewstate be accessed in another page?
Whats the difference between abstract factory pattern and factory pattern?
Explain how is a property designated as read-only?
What is asp.net response object?