If DateSent only contains Date values (with no Time component) then:Select * from myTable where DateSent = CONVERT(date, GetDate())
If DateSent does contain a time element then I personally wouldn't use dateadd(day, 1, DateSent) as it will usually prevent a suitable index being used to optimise the query, and instead I would do:Select * from myTable where DateSent >= DATEADD(Day, DATEDIFF(Day, 0, GetDate()), 0)AND DateSent < DATEADD(Day, DATEDIFF(Day, 0, GetDate()), 1)
The formula probably looks complex, but it is all based on integer arithmetic so is more efficient than, for example, converting dates to strings for comparison.It might be fine to change the range test as follows, but I haven't checked what the efficiency of the CASTing is:Select * from myTable where DateSent >= CONVERT(Date, GetDate())AND DateSent < CONVERT(Date, GetDate()+1)