5.5. ADO Integration in OleDbDataAdapter

Many programs written in ADO classic use commands to produce a Recordset. ADO Recordsets are most similar to ADO.NET's DataTable. Like a DataTable, an ADO Recordset can be produced from a database resultset or can be synthesized as data in a standalone class. As a conversion aid, the OleDb data provider exposes an overload of Fill that takes an ADO Recordset as input, rather than filling the DataSet through the OleDbDataAdapter's SelectCommand.

In addition, ADO classic includes a Record class that is more lightweight and faster than using a Recordset. Think of the Record as a one-row Recordset. The OleDbDataAdapter method can also fill a DataSet from an ADO Record object using the same overload. When you ...

Get Essential ADO.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.