Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date in Where clause
Message
 
 
À
27/04/2007 04:54:32
Aman Bains
Jaguar Computers
Jalandhar, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01220356
Message ID:
01220379
Vues:
15
This message has been marked as the solution to the initial question of the thread.
You have two choices:

1. Convert VFP date to a string or number that SQL Server recognizes as a date. See http://msdn2.microsoft.com/en-us/library/ms180878.aspx for more info
2. Use SPT parameters.
ldDate = DATE()
lcSQL = [SELECT * FROM mytable WHERE dtcol = ?ldDate]
>How do I pass a date condition in the where clause of a Select statement using:-
>1) SQLexec()
>2) Cursoradapter.cSelectCmdFilter
>
>How to convert date as simple VFP SQL is not working for SQL Server?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform