Hi there,
I am trying to create a simple query to extract data from an SQL 2008 R2 database. The only problem I am having is with the syntax for inserting dates into the SQL string. When I run the code I do not get any errors but it also returns no results when it should. It's probably worth mentioning it's not a problem with UK/US date formats too because I've tried it using dates that work both ways. Here's my code:
Any ideas why that SQL statement isn't working? If I take out the WHERE clause it's fine.
Thanks,
Matt
Bookmarks