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
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
Is string a value type or a reference type?
What is asp.net response object?
Why session is more secure than cookies?
Explain how viewstate is being formed?
How can you enable impersonation in the web.config file?
To call a Web service which transport protocol you can use?
What are type/key pairs in client script registration?
What is the difference between c# and .net?
How to execute a stored procedure.and how to call it form a asp page
Who can consume WebAPI?
How can exception be handled with out the use of try catch?