How do I query for all dates greater than a certain date in SQL Server?
In your query, 2010-4-01 is treated as a mathematical expression, so in essence it read (2010 minus 4 minus 1 is 2005 Converting it to a proper datetime, and using single quotes will fix this issue.) Technically, the parser might allow you to get away with it will do the conversion for you, but in my opinion it is … Read more