The following features are new in ADO.NET version 2.0.
Managed Providers
Server Enumeration
Asynchronous Processing
Multiple Active Result Sets (MARS)
Bulk Copy Operations
New SQL Server Max Data Types
-
Provides support for varchar(max), nvarchar(max), varbinary(max) data types in SQL Server 2005. For more information, see Working with Large Value Types
SQL Server User-Defined Types
SQL Server Notifications
Transactions with SQL Server Snapshot Isolation
Database Mirroring in SQL Server 2005
Provider Statistics
Change Password in SQL Server 2005
Batch Processing
Tracing
Partial Trust
Connection Pooling Control
SQL Server XML Data Type Support
Integration with System.Transactions and Promotable Transactions Optimization for SQL Server 2005
-
.NET 2.0 includes a new transactions framework, accessible through the System.Transactions namespace. When combining System.Transactions for distributed transaction management, System.Data.SqlClient for database access, and SQL Server 2005 as the back end, it is possible to optimize distributed transactions so that the extra cost of making them "distributed" is only incurred when the transactions are actually needed.
Disconnected Classes
DataSet Enhancements
DataSet Enhancements
Binary Serialization for the DataSet
DataTable as a Stand-Alone Object
-
Many methods that were only available in the DataSet in previous versions are now available in the DataTable as well (such as ReadXml and WriteXml). Also, a DataTable can be serialized by itself, so it’s no longer necessary to have a DataSet with a single table just to expose the table through Web services or any other mechanism that requires serialization.
Create a DataTable from a DataView
Schema Inference Engine Enhancements
Namespace-Qualified Tables
New DataTable Loading Capabilities
Row State Control
Enhanced Support for Custom Defined Types
-
The DataTable provides more support for custom, user-defined types. XML serialization has been extended to support polymorphism. For example, a Person Column can store an Employee instance that gets serialized and de-serialized to and from XML without loss of any type fidelity. Additionally users can now implement the new change tracking interfaces that enable the DataTable to track changes for such objects.
XML/XSD Enhancements
DataRow Enhancements
Change Position of Column in DataTable
DataView Performance Improvements
DataColumn Expressions
Schema Serialization for Typed DataSet
Provider-Independent APIs
.NET Data Provider Enumeration
Provider Independent API
Schema Discovery
-
Schema discovery allows applications to request managed providers to find and return information about the database schema of the database a given connection is connected to. Different database schema elements such as tables, columns and stored-procedures are exposed through the GetSchema methods of each provider's Connection class. For more information, see Obtaining Schema Information from a Database.
See Also