将DataReader转换为DataTable的一个函数

Posted by & filed under ADO.NET.

 1        public static DataTable ConvertDataReaderToDataTable(IDataReader reader)
 2        {
 3            DataTable objDataTable = new DataTable();
 4            int intFieldCount = reader.FieldCount;
 5            for (int intCounter = 0; intCounter < intFieldCount; ++intCounter)
 6            {
 7                objDataTable.Columns.Add(reader.GetName(intCounter), reader.GetFieldType(intCounter));
 8            }

 9
10

Enhancements for ADO.NET 2.0

Posted by & filed under ADO.NET.

The following features are new in ADO.NET version 2.0:

Managed Providers

*

Server Enumeration

Provides support for enumerating active instances of Microsoft SQL Server 2000 and later.
*

Asynchronous Processing

Allows you to perform asynchronous database operations using an API …

Multiple Active Result Sets

Posted by & filed under ADO.NET.

理解しにくい・・・・・・
 Multiple Active Result Sets, or MARS, is a new feature supported by ADO.NET that allows the implementation of multiple batches on a single connection.

MARS has the ability to have more than one pending request under a given SQL

Asynchronous Operations

Posted by & filed under ADO.NET.

新しい機能、勉強しないと・・・・・・

New Features of ADO.NET 2.0
Asynchronous Operations

ADO.NET 1.1 and earlier required your data access operations to be synchronous. ADO.NET 2.0 includes new methods for the Connection and Command classes that permit you to execute asynchronous operations.

In a

Batch Updates

Posted by & filed under ADO.NET.

New Features of ADO.NET 2.0
Batch Updates

Batch support in ADO.NET 2.0 allows a DataAdapter to group insert/update/delete operations from a DataSet or DataTable to the server, instead of sending one operation at a time. The reduction of round trips

Data Source Configuration Wizard

Posted by & filed under ADO.NET.

ずっとClub Start KItでDataSet.Xsdの作り方を考えました、今日漸くわかりました、うれしいです。

Visual Studio 2005 Wizards and Designers
Data Source Configuration Wizard
Wizards and Designers

This wizard adds a new XML Schema Definition (.xsd) and supporting files to your project. When you select a data table or stored procedure in the database,