Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Syntax for dates
Message
From
22/08/2006 14:32:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
SQL Syntax for dates
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01147655
Message ID:
01147655
Views:
54
Hi,

I want to build up an SQL query that runs against SQL Server and turns out like this:
SELECT Batches.Bat_batchno, 
       batches.bat_month, 
       batches.bat_year, 
       EDCards.* 
FROM EDCards 
INNER JOIN Batches ON edc_batfk = bat_pk 
WHERE  edc_dentry = 22/08/2006 00:00:00
I am getting an "incorrect syntax near '00'" error when I try to run the SQL.

What am I missing?

Thanks.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Next
Reply
Map
View

Click here to load this message in the networking platform