Posts Tagged ‘ Compare ’

How to Compare SQL SmallDateTime Fields for Equality

2017/12/01
By
Modified: 2017/11/05
MS SQL Server 2008 R2

It is meaningless to compare for equality (==) two fields of type SmallDateTime, because they contain time component and they are hardly ever the same. Here are some interesting ways around this problem to check, if two SmallDateTime fields have the same date component.

Read more »