Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Syntax for dates
Message
De
22/08/2006 14:32:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
SQL Syntax for dates
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01147655
Message ID:
01147655
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform