Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing SQL-INSERT via ADO is producing incorrect dates
Message
De
29/05/2003 11:28:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/05/2003 11:03:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00793950
Message ID:
00793965
Vues:
37
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>When I pass an INSERT-SQL like "INSERT INTO Table (DateField) VALUES ({15/01/2003})" via ADO Connection, VFP always places the date into the table as an American style format.
>
>I have SET DATE TO British set via the DBC OpenData event, what else can I do?
>
>Thanks
>Kev

Kevin,
Use strictdate format :
"INSERT INTO Table (DateField) VALUES ({^2003/01/15})"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform