I just came across a strange behaviour of a query I'm running against a SQL Server 2014.
SELECT *
FROM ExampleTable
WHERE ExampleTimestamp < '22.06.2016 15:35:00'
The strange thing now is that it returns a row twice, what I've not expected to happen.
From the data I can see that two column of the duplicated rows are different in each occurrence (one of them is the ExampleTimestamp
column).
It is likely that the data row was changed by a different thread, but is it normal that the data row is then returned twice in one DataTable
?
How can I prevent getting a row twice if it was changed during the query?