Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to select distinct values
Message
De
09/03/2005 11:28:29
 
 
À
09/03/2005 10:25:20
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
00994010
Message ID:
00994035
Vues:
13
This message has been marked as the solution to the initial question of the thread.
Sylvain,

AFAIK, there's no DataTable method to do this. You'll have to iterate through the Rows (set a view and sort the view, at least then you'll have like values together).

~~Bonnie


>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform