Say, if 'dtIn' is of type DATETIME2, is it safe to do the following comparison using SQL Server 2008?
--my concern is about equality part,
-- or will it pick ALL 2012-09-09 22:30:00 dates?
SELECT * FROM tbl WHERE [dtIn] <= '2012-09-09 22:30:00'
The reason I'm asking is a possible situation when such comparison can be "bad" in a programming language where dates are stored as 'double's, or number of milliseconds since midnight of 1980, or something like that. Such value is stored as a floating point number, that is always a bad idea to compare for equality.