OLE DB of database connection technology

Source: Internet
Author: User
Tags ole

the previous blog introduces ODBC and JDBC, and this is a simple introduction to OLE DB. ODBC Summary do not know is not posted on the blog or not on this blog, I look for, no words I add to the time. All right, let's get started.
Reviewbefore, we introduced the basic structure of ODBC and JDBC is the same, that is, the essence of the same. is a unified set of interfaces that access the database, a series of specifications and APIs for database access. The difference is that ODBC is implemented by the C + + language, and JDBC is implemented in Java, because the Java program and the C + + ODBC communication is inconvenient. It can be said that the relationship between ODBC and JDBC is horizontal, whereas OLE DB is vertically relative to ODBC. Why do you say that?
History of OLE DBWhy is it that the relationship between Ole DB (Object linking and Embedding, Database) and ODBC is vertical? This is still to be said from ODBC, ODBC is a set of interfaces, but ODBC only supports access to the relational database, two-dimensional data database. But with the development of technology obviously we need to face not only the relational database, but also the non-relational row and hierarchy row data that cannot be accessed with SQL, including the data in the mail system, the text on the Web, the directory service and so on. Therefore, the relationship between Ole DB and ODBC from the point of view of the data source is as follows:

based on COM standardsODBC is an API-based implementation, while OLE DB is based on COM standards. That is to say, ODBC must support almost all DBMS features and functionality on implementation, while OLE DB can be partially implemented. There's not much to understand. com standards.
OLE DB composition
OLE DB includes several logical components because they are based on COM standards, so the components are independent of each other and only maintain communication.
Data Provider: A database provider that provides the data through OLE DB. The concept of a data provider can be compared with the driver in ODBC.
Data Consumer: A program or component that uses the data provided by OLE DB.
Service Component: Performs data transfer between the data provider and the data consumer.
Business components (bussiness Component): A functional component that can be reused by using a service component to accomplish a particular kind of business-specific processing.
OLE DB and ADOthe previous blog has definitely introduced ADO, here ADO is the further encapsulation of OLE DB, the relationship in the program is as follows:


Overall: OLE db is an extension of ODBC, which is based on COM standards and has a higher flexibility than ODBC. But ultimately it's a set of standards for linking databases. It's just a little lower than the ODBC.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.