How to select distinct records from a dataset where writing a storeprocedure for this
Loading
How to select distinct records from a dataset where writing a storeprocedure for this
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Nov 24, 2008, 7:22 PM
var query = (
from row in yourdataset.tables["tableName"].AsEnumerable()
select row.Field
foreach (var name in query) {
Console.WriteLine(name);
}