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


Please Help Members By Posting Answers For Below Questions

What are the components of ado.net?

625


What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

644


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

1788


What are the types of caching in asp.net?

657


What threading model used in asp and asp.net?

650






Which object encapsulates state or data of a user?

719


What are the different types of validation controls in asp.net?

620


What is clickid?

648


Can the dictionary object be created in client?s scope ?

2074


Which browsers support the xmlhttprequest object?

613


What is webresource axd?

546


Explain the role of global.asax?

627


Who is using asp.net?

590


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1492


Explain the advantages of asp.net.

626