Jimbob
Aug 1st, 2000, 07:48 AM
What's wrong with this query??
SELECT * FROM Ticket
WHERE WspanRef IS NOT NULL AND WSpanRef <> ''
AND TimeStamp < '31/07/00'
ORDER BY TimeStamp;
It's running on a sql 7 database, and TimeStamp is a datetime field automatically filled in by setting it's default to getdate()
when I try to run the query, I get 'the conversion of char data type to datetime data type resulted in an out of range datetime value':confused::confused::confused::confused::confused:
This seems to imply that i've entered the date incorrectly. I tried entering the date in the american format (mm/dd/yy), but to no avail. I also tried using a # instaed of a ' around the date (a la access) but that didnt work either.
I know that this is something really simple, but I'm at a dead loss to explain it.
SELECT * FROM Ticket
WHERE WspanRef IS NOT NULL AND WSpanRef <> ''
AND TimeStamp < '31/07/00'
ORDER BY TimeStamp;
It's running on a sql 7 database, and TimeStamp is a datetime field automatically filled in by setting it's default to getdate()
when I try to run the query, I get 'the conversion of char data type to datetime data type resulted in an out of range datetime value':confused::confused::confused::confused::confused:
This seems to imply that i've entered the date incorrectly. I tried entering the date in the american format (mm/dd/yy), but to no avail. I also tried using a # instaed of a ' around the date (a la access) but that didnt work either.
I know that this is something really simple, but I'm at a dead loss to explain it.