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 tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
What is the concept of view state in asp.net?
Describe the .net base class library.
How can you access the properties and controls of master pages from content pages?
How is a session stored and maintained in asp.net?
Write the different features of a Thread and a Process?
How does cookies work in asp net?
What is meant by ispostback in asp net?
what is silver light when will we use silver light,
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?
Why is global asax is used?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What is the Intermittent crashing of application in production?
Can you set which type of comparison you want to perform by the comparevalidator control?