When would you not use the oleDbConnection object?
a) To connect to an SQL 7.0 database.
b) To connect to a DB/2 database.
c) To connect to an Access database.
d) To connect to an SQL 6.5 database.
Answer Posted / bhushan
Guyz...The question is "When would you....?". IMO, we can
connect to any database using oleDbConnection. However, the
question dwells on the fact that when would we not use it.
The fact that MS Access is a desktop database, leaves us no
option but to use oleDbConnection. Also, there must be some
way to connect to DB/2 database. The only 2 choices are to
use ODBC and OLEDB. So that has to be used with DB/2 as
well. However, with SQL server databases we have plenty of
support by the way of Sqlconnection and associated data
objects. These objects make it easier to work with SQL
databases easier than to use raw oleDbconnection. So the
obvious choice would amongst these 2. Yet going further, we
would refine our answer and state that support for SQL 7.0
has improved over SQL 6.5 and hence it has all the more
reason so as not to use OLEDBConnection. So IMO, the answer
should be SQL 7.0 database. Please correct me if any one
knows better...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is redirecting behavior?
Explain what are delegates?
What are the namespaces used in asp.net mvc? : asp.net mvc
What is route in web api?
Explain the concept of View Model in MVC?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
Write a code for passing ArrayList in Web API?
How do I use response redirect?
What is the difference between custom controls and user controls?
What is considered a service provider?
Explain how can we inherit a static variable?
What are the types of authentication in asp.net?
Which methods validate all the controls on a page?