OLE DB (OLEDB or Object Linking and Embedding Database)

OLE DB is Microsoft's strategic low-level application program interface (API) for access to different data sources. OLE DB includes not only the Structured Query Language (SQL) capabilities of the Microsoft-sponsored standard data interface Open Database Connectivity (ODBC) but also includes access to data other than SQL data.

As a design from Microsoft's Component Object Model (COM), OLE DB is a set of methods (in earlier days, these might have been called routines) for reading and writing data. The objects in OLE DB consist mainly of a data source object, a session object, a command object, and a rowset object. An application using OLE DB would use this request sequence:

  1. Initialize OLE.
  2. Connect to a data source.
  3. Issue a command.
  4. Process the results.
  5. Release the data source object and uninitialize OLE.

OLE once stood for "Object Link Embedding" and "DB" for database. However, Microsoft no longer ascribes these meanings to the letters "OLE" and "DB."

This was last updated in July 2006

Continue Reading About OLE DB (OLEDB or Object Linking and Embedding Database)

Dig Deeper on SQL-Transact SQL (T-SQL)