DataSets are like mini databases in memory. You can do all sorts
of things with "if necessary" such as parent/child relationships, cross
table
relationships (a DataSet holds one or more DataTable), and various other
items.
In a desktop app, they can work well for databinding to grids, lists, etc.
particularly
if you need a do/undo mechanism prior to commiting all the changes to the
database. I generally only utilize DataSets for managing database updates
when
I want to work with a whole set of related records. Otherwise, I stick with
the standard approach of calling stored procedures on individual records
using my own custom code.
That said...
If you are simply querying records for display, you'll want to look at
filling
a DataTable or just using a Reader. Far less overhead.
--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net
Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp
"serge calderara" <(E-Mail Removed)> wrote in
message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> Dear all,
>
> I have read in many places that datasset are great for retriving data that
> needs to be updated afterwards as they are working as discinnected mode.
> But then an other topic comes is the fact that they are expensive in
> memory...
>
> So now my question is that:
> if you have a huge amount of data issu from a single table or linked
> tables, you know that you need to make records update at a certain point.
> At
> first Dataset is the proper way of doing it, but when people says that
> dataset are expensive in memory what to do then, or when to use it ?
>
> Thanks to clear upmy mind on that
> Regards
> serge