O'Reilly logo

Essential ADO.NET by Bob Beauchemin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required