Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set date format to VFPOLEDB
Message
 
To
14/09/2009 09:16:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01424074
Message ID:
01424106
Views:
91
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform