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 Fenil Desai on 8:24 PM Rating: 5

No comments:

Powered by Blogger.