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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muhammad Imran AnsariPosted Jan 22, 2022, 5:32 AM
geetha geethaPosted Nov 24, 2021, 12:25 PM
Dataset is a disconnected architecture.
SenthilkumarPosted Apr 17, 2012, 12:28 AM
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
Jignesh TrivediPosted Apr 16, 2012, 11:38 PM
please refer
http://msdn.microsoft.com/en-us/library/904fck4k%28v=vs.71%29.aspx
if is very good article on same.
Sam HobbsPosted Apr 16, 2012, 4:04 PM
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.
Satyapriya NayakPosted Apr 16, 2012, 1:08 PM
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