The point is, if you know how to use a DataReader, use it. It's interesting
to return a rowset when you DON'T need a DataTable and its features. Fill is
overkill for lots of queries and essential when you want ADO.NET to expose
the Update method. (See my article
http://www.pinpub.com/html/main.isx?sub=45&query=command+vaughn) We've seen
too many folks extol the virtues of the DataReader only to turn around and
write fifty lines of code to parse the columns that come back and then write
another n lines to build a DataTable from the rowset. Each of those lines of
code have to be debugged and tested and are subject to change when the
schema changes. Madness.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________