Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain how viewstate is being formed?

966


Differences between “dataset” and “datareader”.

1037


What are the Types of objects in ASP

1088


How to use push notification?

1033


Explain ViewState?

1028


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

866


What is data control in asp.net?

1011


How do sessions work?

938


What is difference between session and cookies?

1014


What is the default authentication mode for asp.net?

1107


How many ways are there to maintain a state in .net? What is view state?

1007


What language is asp.net written in?

1030


How could you modify xaml content from javascript?

1007


What are asp.net web forms?

1002


How can you handle unmanaged code exceptions in asp.net?

1086