R
Rich
I am still using dataAdapters against sql server, Oracle, ... But I keep
reading the LinQ is overtaking these. One operation that I perform to
exclude duplicate rows from a dataset is to push the data from the dataset
back to the server to a #tmp table that I create from within the app. Then
I run a query from within the app against this #tmp table on the server using
a dataAdapter which uses the following statements:
SELECT * FROM #tmp t1 WHERE EXISTS
(SELECT * FROM (SELECT TOP 1 * FROM #tmp t2 WHERE t2.RecordId = t1.RecordId
Order By FirstDate) t3 WHERE t3.ID = t1.ID)
Can LinQ perform an operation like this locally to the app so that I don't
have to push the data back to the server? If yes, what would the LinQ code
look like?
Thanks,
Rich
reading the LinQ is overtaking these. One operation that I perform to
exclude duplicate rows from a dataset is to push the data from the dataset
back to the server to a #tmp table that I create from within the app. Then
I run a query from within the app against this #tmp table on the server using
a dataAdapter which uses the following statements:
SELECT * FROM #tmp t1 WHERE EXISTS
(SELECT * FROM (SELECT TOP 1 * FROM #tmp t2 WHERE t2.RecordId = t1.RecordId
Order By FirstDate) t3 WHERE t3.ID = t1.ID)
Can LinQ perform an operation like this locally to the app so that I don't
have to push the data back to the server? If yes, what would the LinQ code
look like?
Thanks,
Rich