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
I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
Explain how dot net compiled code will become platform independent?
How many ways are there to maintain a state in .net? What is view state?
What is content page in asp net?
Why is global asax is used?
What is asp.net web pages?
What is the difference between abstract class vs interface? Can give me the real time examples?
What is use of Master Page in ASP.NET web pages?
What is dynamic web page with example?
Why do we use asp.net?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
What is __ requestverificationtoken?
What is the difference between ASP Session State and ASP.Net Session State?
What are the components of ado.net?