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 the use of autowireup in asp.net?
What is a user session?
Explain serialization and deserialization?
What is the difference between login controls and forms authentication?
Explain how can you debug your .net application?
Explain the path instructions in xaml?
What parameters can you pass in the url of the api? Can get and post use the same url?
Describe the difference between inline and code behind - which is best in a?
Apart from IDE what are the enhancements in asp.net 2.0?
What is asynchronous call?
Tell me the code snippet to show how we can return 404 errors from HttpError?
What is the advantage of mvc over asp.net? : Asp.Net MVC
What is the difference between runtime version and version?
What's the use of formatters in .net?
How can I open ashx file in mobile?