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
What is base class of .net?
Explain about asp.net caching?
What types of data validation events are commonly seen in the client-side form validation?
Describe the application event handlers in ASP.NET?
What is a 307 redirect?
how to elimainte the similar data from the different tables
List the advantages and disadvantages of user control an custom control?
What is the benefit of WebAPI over WCF?
Give an example of cookie abuse.
Why do we use datasource in asp.net?
Explain login control and form authentication.
What is asp.net and ado net?
How do u deploy ur project?
What are the modes of updation in an updatepanel?
How can we implement a identity (sql server) call in an asp.net page?