How do I set a DateTime database field in a specific range?
I am using SQL SERVER 2005
Error code below
SELECT * FROM TABLENAME WHERE DateTime >= 12/04/2011 12:00:00 AM AND DateTime <= 25/05/2011 3:53:04 AM
Please note that I need to get rows in a specific time range. Example: a time interval of 10 minutes.
SQL is currently being returned with the wrong syntax near "12".
sql sql-server tsql sql-server-2008 sql-server-2005
ove May 25 '11 at 3:57 a.m. 2011-05-25 03:57
source share