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.
Answers were Sorted based on User's Feedback
What is the difference between CLICK and MOUSE DOWN Event ?
How to check the end of the record in Datareader?
What is the good practice to implement validations in aspx page?
What is Bundling and Minification in MVC?
How to refresh a page in asp.net
What is the difference between session and viewstate in asp.net?
What are app services?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
What are custom controls?
How long does an http session last?
What language does asp.net use?
A web service can only be written in .net? State whether true or false.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)