I heard somewhere that declaring an Index on a date column is bad for performance, but I can’t find any reference on the internet.
Suggestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DateTimeinSQL Server 2005(and inSQL Server 2008too) is stored as a8-byte value, consisting of:Jan 1, 1900in the first4bytes (the date part)1/300ticks from the midnight in the second4bytes (the time part)It’s perfectly OK to index this value.