How to select distinct values

  • Thread starter Thread starter Sylvain Larin
  • Start date Start date
S

Sylvain Larin

I have a DataSet filled from a previous query to the database. I need to
get the distinct values from a field in the DataSet. Is there a way to
acheive this without going through the DataTable or by hitting again the
database?

TIA
 
How could it find without doing one or the other ? My personal preference
would be to select this server side (I would say generally this is because
you want a codification table you could select at the same time resulting in
filling two tables instead of a single table in yur dataset).

If you prefer the other way :
http://support.microsoft.com/default.aspx?scid=kb;en-us;326176





Patrice
 
I used the described method by Microsoft...DataSetHelper Class.
Worked fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top