How do I query DateTime database field within a certain range?
I am using SQL SERVER 2005
Error code below
SELECT * FROM TABLENAME WHERE
SELECT * FROM TABLENAME WHERE [DateTime] >= '2011-04-12 12:00:00 AM' AND [DateTime] <= '2011-05-25 3:35:04 AM'
If this doesn't work, please script out your table and post it here. this will help us get you the correct answer quickly.