Hi
What is the difference between ADO.NET Dataset and ADO Recordset ?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 16, 2012, 9:08 AM EDT
Differences between ADO Recordset and ADO.Net DataSet:
1. Table Collection: ADO Recordset provides the ability to navigate through a single table of information. That table would have been formed with a join of multiple tables and returning columns from multiple tables. ADO.NET DataSet is capable of holding instances of multiple tables. It has got a Table Collection, which holds multiple tables in it. If the tables are having a relation, then it can be manipulated on a Parent-Child relationship. It has the ability to support multiple tables with keys, constraints and interconnected relationships. With this ability the DataSet can be considered as a small, in-memory relational database cache.
2. Navigation: Navigation in ADO Recordset is based on the cursor mode. Even though it is specified to be a client-side Recordset, still the navigation pointer will move from one location to another on cursor model only. ADO.NET DataSet is an entirely offline, in-memory, and cache of data. All of its data is available all the time. At any time, we can retrieve any row or column, constraints or relation simply by accessing it either ordinarily or by retrieving it from a name-based collection.
3. Connectivity Model: The ADO Recordset was originally designed without the ability to operate in a disconnected environment. ADO.NET DataSet is specifically designed to be a disconnected in-memory database. ADO.NET DataSet follows a pure disconnected connectivity model and this gives it much more scalability and versatility in the amount of things it can do and how easily it can do that.
4. Marshalling and Serialization: In COM, through Marshalling, we can pass data from 1 COM component to another component at any time. Marshalling involves copying and processing data so that a complex type can appear to the receiving component the same as it appeared to the sending component. Marshalling is an expensive operation. ADO.NET Dataset and DataTable components support Remoting in the form of XML serialization. Rather than doing expensive Marshalling, it uses XML and sent data across boundaries.
5. Firewalls and DCOM and Remoting: Those who have worked with DCOM know that how difficult it is to marshal a DCOM component across a router. People generally came up with workarounds to solve this issue. ADO.NET DataSet uses Remoting, through which a DataSet / DataTable component can be serialized into XML, sent across the wire to a new AppDomain, and then Desterilized back to a fully functional DataSet. As the DataSet is completely disconnected, and it has no dependency, we lose absolutely nothing by serializing and transferring it through Remoting.
Also refer
http://msdn.microsoft.com/en-us/library/904fck4k%28v=vs.71%29.aspx
http://www.netrostar.com/ADO-NET-DataSet-and-ADO-Recordset
Thanks
Sam HobbsRank #107 · 20.5K reputationPosted Apr 16, 2012, 12:04 PM EDT
I do not know what the unmanged equivalent is to the managed (.Net) DataSet class; I think there is not one. The ADO .Net DataSet class contains relationships as well as DataTables in memory and as far as I know unmanaged ADO does not do that.
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 16, 2012, 7:38 PM EDT
please refer
http://msdn.microsoft.com/en-us/library/904fck4k%28v=vs.71%29.aspx
if is very good article on same.
SenthilkumarRank #387 · 6.5K reputationPosted Apr 16, 2012, 8:28 PM EDT
For more info:
http://aspdotnetfordeveloper.blogspot.com/2010/01/what-is-difference-between-dataset-and.html
http://www.netrostar.com/ADO-NET-DataSet-and-ADO-Recordset
geetha geethaRank #7,130 · 248 reputationPosted Nov 24, 2021, 7:25 AM EST
Dataset is a disconnected architecture.
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Jan 22, 2022, 12:32 AM EST