Microsoft Corporation
1997
There has been some confusion lately regarding the relationship of ODBC and OLE. Some people have been hearing that ODBC is being dropped in favor of OLE while others see them as separate and complementary technologies. This document describes the two technologies and how they work together to provide OLE applications with access to SQL data.
Open Database Connectivity (ODBC) technology provides a common interface for accessing heterogeneous SQL databases. ODBC is based on Structured Query Language (SQL) as a standard for accessing data. This interface provides maximum interoperability: a single application can access different SQL Database Management Systems (DBMS) through a common set of code. This enables a developer to build and distribute a client/server application without targeting a specific DBMS. Database drivers are then added to link the application to the user's choice of DBMS.
ODBC's flexibility is illustrated by the following features:
OLE is an object-oriented technology that enables development of reusable software components. The OLE component object model paradigm represents a fundamental shift in the way applications are written. Instead of traditional procedural programming in which each component implements the functionality it requires, the OLE architecture allows applications to use shared objects that provide specific functionality. Things like text documents, charts, spreadsheet tables, mail messages, graphics, and sound clips all appear as objects to the OLE application.
OLE objects are supported on the Windows® and Macintosh® platforms today and are the foundation of future Windows operating systems.
As part of our commitment to OLE, Microsoft has defined a set of data objects, collectively known as "OLE DB," which allow OLE-oriented applications to share and manipulate sets of data as objects. This technology includes an ODBC Provider that exposes OLE DB objects over any ODBC driver. This allows any OLE DB application to access SQL data exposed through ODBC drivers, and opens the door to a whole new class of clients for ODBC drivers.
For more information on OLE DB, go to http://www.microsoft.com/data/.