G
Guest
Hello,
I pull sql server data into a .Net (2.0) dataTable (vb2005 app) using
criteria like
CompanyName = '3com%' which will return every variation of '3com' in the
source data like '3com inc', '3com Group'.... The rows all contain a
recordID column. The recordID column in this datatable will contain
non-unique recordIDs. I need to retrieve/extract all distinct/unique
recordIDs contained in this resultant dataTable.
Is there a method/mechanism to perform this operation on my .Net dataTable
from within my application? What is this method/mechanism? Maybe a control
or some object? I looked at the dataview object, but that only perfroms
sorting and filtering.
Or am I limited to have to write an additional query against the source data
in the sql server? THe issue here is that the source data tables are very
large. I would like to keep the number of calls to the server to a minimum.
Ideally, I would like to write a query against the .Net dataTable within the
application.
Select Distinct recordID From myDataTable
Thanks,
Rich
I pull sql server data into a .Net (2.0) dataTable (vb2005 app) using
criteria like
CompanyName = '3com%' which will return every variation of '3com' in the
source data like '3com inc', '3com Group'.... The rows all contain a
recordID column. The recordID column in this datatable will contain
non-unique recordIDs. I need to retrieve/extract all distinct/unique
recordIDs contained in this resultant dataTable.
Is there a method/mechanism to perform this operation on my .Net dataTable
from within my application? What is this method/mechanism? Maybe a control
or some object? I looked at the dataview object, but that only perfroms
sorting and filtering.
Or am I limited to have to write an additional query against the source data
in the sql server? THe issue here is that the source data tables are very
large. I would like to keep the number of calls to the server to a minimum.
Ideally, I would like to write a query against the .Net dataTable within the
application.
Select Distinct recordID From myDataTable
Thanks,
Rich