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 are navigation controls? How many navigation controls are there in ASP.NET 4.0?
What is the use of HttpHandlers? When to use this?
What describes a query?
What is the difference between Session and response.Redirect?
what are the security certificates used in webservices?
What is server side routing?
What are the elements of a website?
8. Why do you want to work here?
What are the main advantages of using asp.net?
what is the difference between response.write() and response.output.write()?
What can you do with asp.net?
What is csrf attack in asp.net?
What is the use of ASP.NET routing?
What is aspect-oriented programming?
What is custom events?