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
Differentiate between structure and class.
Explain server-side scripting?
Contrast OOP and SOA. What are tenets of each ?
Write a code for passing ArrayList in Web API?
How can you register a custom server control to a web page?
To wrap up a call to a Web service the standard used is..?
What is asp net_sessionid?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is master page in dtp?
What is inproc mode in session?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
How u refer webservices?
1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?
How does the cookies work in asp.net?
Demonstrate Render and PreRender?