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

Mention the execution process for managed code?

990


What is the difference between dispose() and finalize()?

1014


What is data caching?

993


What is a postback ispostback and autopostback in asp net?

901


Can we override the enablepartialrendering property of the scriptmanager class?

1125


What is is post back property in asp net?

1018


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

989


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

1232


How would you turn off cookies on a page of a website?

924


What is viewstate in asp net with example?

989


How do you remove duplicates without using remove duplicate stage?

1055


Explain how viewstate is being formed?

973


How you can access the values from the Repeater control in ASP.NET?

1071


Which validator control you use if you need to make sure the values in two different controls matched?

1073


What events will occur when a page is loaded?

1040