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 is the compiled object?
Explain the difference between webfarm and webgardens in .net?
What is advantage of asp.net?
Explain automatic memory management in .net.
What is web router?
What is the default timeout for a cookie?
What parameters can you pass in the url of the api? Can get and post use the same url?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What are themes and skins in 2.0, explain usage scenario?
Why session is used in asp.net?
How to create discussion forum in asp.net mvc? : Asp.Net MVC
What is gridview in asp.net?
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
What is base class of button control in .net?
What is razor? : asp.net mvc