Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with storing datetime values through OLEDB
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01089353
Message ID:
01089373
Vues:
18
Hmm... Could you post exactly your code here?

This work for me, from VFP command, and from VB.NET:
cnnVFP = CreateObject("ADODB.Connection")
VFPDirectory = "c:\foxwork\vfpapps"

cnnVFP.Open("Provider=VFPOLEDB.1;Data Source=" + VFPDirectory + ";Collating Sequence=MACHINE")

cnnVFP.Execute("create table test (date_test D, dt_test T)")
cnnVFp.Execute("insert into test values (DATETIME(), DATETIME())")
cnnVFP.Execute("insert into test values ({^2006-10-10 11:11:11 PM}, {^2006-10-10 11:11:11 PM})")
>>Did you try:
>>
>>INSERT INTO mytable (created) VALUES ({^2006-10-10 11:11:11 PM})
>
>
>Still get a "Data type mismatch".
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform