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


Please Help Members By Posting Answers For Below Questions

What is the compiled object?

1634


Explain the difference between webfarm and webgardens in .net?

539


What is advantage of asp.net?

539


Explain automatic memory management in .net.

587


What is web router?

496






What is the default timeout for a cookie?

558


What parameters can you pass in the url of the api? Can get and post use the same url?

550


What is the request flow used for asp.net mvc framework? : asp.net mvc

526


What are themes and skins in 2.0, explain usage scenario?

522


Why session is used in asp.net?

526


How to create discussion forum in asp.net mvc? : Asp.Net MVC

526


What is gridview in asp.net?

513


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

606


What is base class of button control in .net?

517


What is razor? : asp.net mvc

553