What I have here is very strange to me...
Select BARCODE, DATA
from HISTORIA
WHERE BARCODE='25405187' AND DATA = '2013-03-08 00:00:00.000'
Select BARCODE, DATA
from HISTORIA
WHERE BARCODE='25405187'
Simple right?
Now please look at returned data:
Ekhmmm... why... Why... WHYYYY? :) As you see proper dates are there, but comparison kills results.
I have SQL Server 2005 Express and the Management Studio Express