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 tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

691


What is the concept of view state in asp.net?

656


Describe the .net base class library.

620


How can you access the properties and controls of master pages from content pages?

620


How is a session stored and maintained in asp.net?

620






Write the different features of a Thread and a Process?

719


How does cookies work in asp net?

616


What is meant by ispostback in asp net?

629


what is silver light when will we use silver light,

1543


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2040


Why is global asax is used?

699


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

761


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

672


What is the Intermittent crashing of application in production?

647


Can you set which type of comparison you want to perform by the comparevalidator control?

614