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 the asp.net security controls?
How can we apply themes to an asp.net application?
What is the difference between client-side and server-side validations in webpages?
In which event of page cycle is the viewstate available?
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
What is postback request?
Differences between “dataset” and “datareader”.
Which method do you use to kill explicitly a users session?
What is protected configuration?
Is post back in asp.net?
When you use Ajax controls in the ASP.NET application?
Define page fragment caching?
Is post back property in asp net?
How can I have a particular web page in an asp.net application which displays its own error page?
Explain the difference between AutoPostBack and IspostBack in ASP.NET?