Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to select distinct values
Message
From
09/03/2005 11:28:29
 
 
To
09/03/2005 10:25:20
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
00994010
Message ID:
00994035
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform