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:
01424109
Vues:
100
This message has been marked as the solution 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))
>
Can you use parameters instead? Or use the format Boris suggested.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform