Here\'s the scenario. The column in question is called \'datein\' and it\'s type is \'datetime\'. I have three rows with the value of \'2009-10-01 00:00:00.000\' for \'datein\
It's the lack of precision in the thousandths of a second value. Try ".997" instead.
MSDN DateTime documentation
Run this and you'll see:
declare @dt datetime select @dt = '2009-09-30 23:59:59.999' select @dt