Header Ads

Convert Data Reader to Data Table

The usual workaround for this purpose is loop through the rows in the Data Reader and assign each rows to Data Table, This is a time consuming process.

But Dot Net 2.0 and above provides a new DataTable.Load() as a quicker solution.

Here is the method
DataTable.Load(IDataReader);

Posted via email from fenildesai's posterous

Convert Data Reader to Data Table Convert Data Reader to Data Table Reviewed by The Opening Batsman on January 20, 2010 Rating: 5

No comments:

Powered by Blogger.