Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set date format to VFPOLEDB
Message
 
À
14/09/2009 09:16:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01424074
Message ID:
01424106
Vues:
92
This message has been marked as a message which has helped to the initial question of the thread.
>>According to VFP help, the SET DATE Command is not supported by VFP OLE DB Provider. Sorry for confusion.
>>
>>Why do you need to change date format for VFP OLE DB provider?
>
>Becouse until friday my application worked with this
>
>Select * from Distr where (dis_data >= Ctod('01/01/2009')) and (dis_data <= Ctod('11/09/2009'))
>
>but today, the end date is 09/14/2009 (here in Brasil is 14/09/2009) and the SQL instruction is like this below - 14 is not a month
>
>Select * from Distr where (dis_data >= Ctod('01/01/2009')) and (dis_data <= Ctod('14/09/2009'))
>
>
>So, if I can change the date format to DMY, I don't neet to change all the application to
>
>Select * from Distr where (dis_data >= Date(2009,09,01)) and (dis_data <= Date(2009,09,14))
>
Select * from Distr where (dis_data >= {^2009-01-01} and dis_data <= {^2009-09-11})
Select * from Distr where (dis_data >= {^2009-09-01} and dis_data <= {^2009-09-14})
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform