well its always better in making it faster
DataAdapter are always slow compared to the DataReader
I made a test with about 8000 records first with the DataAdapter and
then the DataReader (building a table), on how long it took on each..
each round representing TotalMilliseconds for a TimeSpan from Start of
execution till End
DataAdapter
1) 701
2) 801
3) 741
DataReader
1) 831
2) 791
3) 871
there seems to be a minor difference ..though I found with my test (is
thsi correct?) that the DataAdapter is faster than the DataReader
(minimal ok)
thanks anyway
Peter Bromberg [ C# MVP ] wrote:
> What I meant was, you are correct that the DataAdapter already does this
> internally, and it works just fine. In the big scheme of things, the time
> difference is inconsequential.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Varangian" wrote:
>
> > what do you mean ?
> >
> >
> > Peter wrote:
> > > Varangian,
> > > Beats me. If it ain't broke, why fix it?
> > > Peter
> > >
> > > --
> > > Co-founder, Eggheadcafe.com developer portal:
> > > http://www.eggheadcafe.com
> > > UnBlog:
> > > http://petesbloggerama.blogspot.com
> > >
> > >
> > >
> > >
> > > "Varangian" wrote:
> > >
> > > > Hi all,
> > > >
> > > > the question I want to ask if the conversion of a DataReader to a Table
> > > > looping through the DataReader is better than using the Fill Method of
> > > > the DataAdapter... I'm asking because internally the DataAdapter uses
> > > > the DataReader... so whats the deal of writing a method that converts a
> > > > DataReader into a DataTable ?
> > > >
> > > > Thanks!
> > > >
> > > >
> >
> >