Home
Contact us
Technology Skills
Comparisions
Interview Q & A
Management Skills
Free SMS Collection
Entertainment
Set as Homepage | Add to favorites


Bestest Blog of All- Time

ADO v/s ADO.NET Comparision

ADO.NET is an evolutionary improvement on ADO . One way to quickly understand the advantages of ADO.NET is to compare its features to those of ADO.

Feature: Memory-resident data representation
ADO: Uses the RecordSet object, which looks like a single table.
ADO.NET: Uses the DataSet object, which can contain one or more tables represented by DataTable objects.

Feature: Relationships between multiple tables
ADO: Requires the JOIN query to assemble data from multiple database tables in a single result table.
ADO.NET: Supports the DataRelation object to associate rows in one DataTable object with rows in another DataTable object.

Feature: Data visitation
ADO: Scans RecordSet rows sequentially.
ADO.NETUses a navigation paradigm for non-sequential access to rows in a table. Follows relationships to navigate from rows in one table to corresponding rows in another table.

Feature: Disconnected access
ADO: Provided by the RecordSet but typically supports connected access, represented by the Connection object. You communicate to a database with calls to an OLE DB provider.
ADO.NET: Communicates to a database with standardized calls to the DataAdapter object, which communicates to an OLE DB provider, or directly to SQL Server.

Feature: Cursors
ADO: Utilizes server-side and client-side cursors.
ADO.NET: The architecture is disconnected so cursors are not applicable.

Feature: Programmability
ADO: Uses the Connection object to transmit commands that address underlying data structure of a data source.
ADO.NET: Uses the strongly typed programming characteristic of XML. Data is self-describing because names for code items correspond to the "real world" problem solved by the code. Underlying data constructs such as tables, rows, and columns do not appear, making code easier to read and to write.

Feature: Sharing disconnected data between tiers or components
ADO: Uses COM marshalling to transmit a disconnected record set. This supports only those data types defined by the COM standard. Requires type conversions, which demand system resources.
ADO.NET: Transmits a DataSet as XML. The XML format places no restrictions on data types and requires no type conversions.

Feature: Transmitting data through firewalls
ADO: Problematic, because firewalls are typically configured to prevent system-level requests such as COM marshalling.
ADO.NET: Supported, because ADO.NET DataSet objects use XML, which can pass through firewalls.

Feature: Scalability
ADO: Database locks and active database connections for long durations contend for limited database resources.
ADO.NET: Disconnected access to database data without retaining database locks or active database connections for lengthy periods limits contention for limited database resources.

ADO.NET is designed to build on the strength of the ADO programming model, while providing an evolution of data access technology to meet the changing needs of the developer. It is designed to leverage your existing knowledge of ADO , while giving you much finer control over the components, resources, and behavior of your applications when accessing and working with data.