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
Mention the execution process for managed code?
What is the difference between dispose() and finalize()?
What is data caching?
What is a postback ispostback and autopostback in asp net?
Can we override the enablepartialrendering property of the scriptmanager class?
What is is post back property in asp net?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
How would you turn off cookies on a page of a website?
What is viewstate in asp net with example?
How do you remove duplicates without using remove duplicate stage?
Explain how viewstate is being formed?
How you can access the values from the Repeater control in ASP.NET?
Which validator control you use if you need to make sure the values in two different controls matched?
What events will occur when a page is loaded?