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
How would you get asp.net running in apache web servers?
Explain the Order of events in an asp.net page?
Is asp.net still used?
How can we communicate with each server in N-tier Architecture? and what are the methods?
Why do we use web config?
Explain swagger components.
What is different authentication mechanisms used in ASP.NET?
What is the difference between mvc and asp.net? : Asp.Net MVC
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
How does asp net store session ids by default?
What are the benefits of view state?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
Explain server control extensibility with reference to asp.net 2.0 ?
What is cas?
What does asp in asp.net stand for?