Database access standards: ODBC, OLE DB, and ADO
✍️ How to write this paper — guide, tools & examples ▾
Databases
Some of the many standards for accessing data include Open Database Connectivity (ODBC), OLE DB, Active Data Objects (ADO) and Common Object Request Broker Architecture (CORBA). In the constantly changing world of standards, it's often difficult to tell if a standard is a replacement, a compliment or a competitor. This paper sorts out these efforts by explaining what place each plays as standards have evolved.
Open Database Connectivity Standard (ODBC)
ODBC is an open standard application programming interface (API) for accessing a relational database (Open Database Connectivity, TechTarget). By using ODBC statements in a program, the application can access files in databases that support the standard. ODBC was created by the SQL Access Group and first released in 1992. Although Microsoft Windows was the first to provide an ODBC product, versions now exist for most platforms.
ODBC is based on and closely aligned with The Open Group standard Structured Query Language (SQL) Call-Level Interface (Open Database Connectivity, TechTarget). It allows programs to use SQL requests that will access databases without having to know the proprietary interfaces to the databases. ODBC handles the SQL request and converts it into a request the individual database system understands. In addition to the ODBC software, a separate module or driver is needed for each database to be accessed.
III. OLE DB
According to Microsoft, the creator of OLE DB, OLE DB is "a 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." (Comparing OLE DB and ODBC) Whereas ODBC was created to access relational databases, OLE DB is designed for relational and non-relational information such as mainframe ISAM/VSAM and hierarchical databases; e-mail and file system stores; text, graphical, and geographical data; and custom business objects, to name a few.
The major differences between OLD DB and ODBC are (Comparing OLE DB and ODBC):
OLE DB is a component-based specification and ODBC is a procedural-based specification
SQL is the core of accessing data using ODBC but just one of the means of data access through OLE DB
ODBC is constrained to relational data stores; OLE DB supports all forms of data stores (relational, hierarchical, etc.)
OLE DB typically provides a richer and more flexible interface for data access because it is not tightly bound to a command syntax such as SQL in the case of ODBC
Because of the many advantages of OLE DB over ODBC, Microsoft positioned OLE DB has a clear successor to ODBC.
V. Common Object Request Broker Architecture (CORBA)
CORBA is OMG's open, vendor-independent architecture and infrastructure that computer applications use to work together over networks (CORBA Basics). Using a standard protocol, a CORBA-based program from any vendor, on almost any computer, operating system, programming language, and network, can interoperate with a CORBA-based program from the same or another vendor, on almost any other computer, operating system, programming language, and network.
The core foundation of CORBA is the Object Request Broker (ORB) that provides an interface between requesting objects and receiving objects (CORBA, TechTarget). ORB support in a network of clients and servers on different computers means that a client program can request services from a server program or object without having to understand where the server is in a distributed network or what the interface to the server program looks like. To make requests or return replies between the ORBs, programs use the General Inter-ORB Protocol (GIOP) and, for the Internet, its Internet Inter-ORB Protocol (IIOP). IIOP maps GIOP requests and replies to the Internet's Transmission Control Protocol (TCP) layer in each computer.
VI. Functions of a Database Application.
There are no major differences between COM's and CORBA's ability to support functions of a database application. COM is built on a proven desktop component architecture; COM-based applications are robust and perform well; and COM's integration into development languages and tools simplifies application development (Tallman, O. And Kain, 1998). However, extending a desktop architecture to the enterprise can be problematic.
In comparison to COM, CORBA has a more complete and well-defined enterprise architecture and provides a better solution for heterogeneous environments because OMG IDL ensures an extensible architecture and support for both new and legacy applications (Tallman, O. And Kain, 1998). The disadvantages of CORBA are its complexity and reliance on implementations by vendors which can prove to be highly variable.
VII. Summary and Conclusion
The world of integration middleware is constantly evolving. Initial standards from Microsoft such as ODBC have been replaced by OLE DB which it then enhanced with ADO. And, Microsoft has continued the march into the enterprise with support for distributed component objects via DCOM. Not only do replacement standards emerge, competing standards vie for acceptance. DCOM and COBRA are two examples that each has pros and cons and force companies to make tradeoffs in their application development and interoperability decisions.
Create your account
Always verify citation format against your institution’s current style guide requirements.