Reputation: 12534
I'm storing calendar event dates, including recurring events. The table could get huge. Most of my queries are for ranges of a month (i.e. where eventstart >= '1/1/2001' and eventstop <= '1/31/2001') so I don't care about time so much in my queries.
Would I get better performance in range queries if I queried a date column vs a datetime column?
Upvotes: 1
Views: 378
Reputation: 882
Rule 1) Always use the smallest data size that will accommodate the largest possible value.
http://www.sql-server-performance.com/2007/datatypes/
Upvotes: 1