Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Choosing between ODBC and OLEDB? 2

Status
Not open for further replies.

haddaway

Programmer
Jul 6, 2005
172
0
0
SE
I am developer who is writing an application. For some functionality I would like to provide database access for executing sqls in text and stored procedure format. The platform is windows and the target databases are MSSQL, Oracle and MySQL.

Which type of connection (ODBC or OLEDB) should I provide support for? Thanks.
 
MSDN said:
OLE DB is Microsoft’s strategic system-level programming interface to data across the organization. OLE DB is an open specification designed to build on the success of ODBC by providing an open standard for accessing all kinds of data. Whereas ODBC was created to access relational databases, OLE DB is designed for relational and nonrelational information sources, including mainframe ISAM/VSAM and hierarchical databases; e-mail and file system stores; text, graphical and geographical data; custom business objects; and more.
...
Performance Advantages Over ODBC
While ODBC has been a very important and successful data access standard, OLE DB has an improved architecture that provides a significant performance advantage over ODBC. ODBC providers no longer have to implement a SQL relational engine to expose data. With ODBC, services such as cursoring and query processing need to be implemented by every ODBC driver writer. This represents overhead both for the ODBC driver author, as well as for the end user (how many cursor engines and query processors do you need on one machine?). With OLE DB, reusable service components handle the processing chores for a variety of data providers. OLE DB simplifies the process of writing data providers, which means they should come online faster and be of a higher quality; it also reduces the number of components installed on data consumer machines.
...
 
OLE DB runs faster and it is the preffered (Microsofts) way for future.

Use Visual Foxpro and its Cursoradapter class. Then you can switch between ODBC and OLE DB with one property setting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top