Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC and empty date
Message
From
08/01/2008 14:25:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ODBC and empty date
Miscellaneous
Thread ID:
01280300
Message ID:
01280300
Views:
71
We're using a remote connection to a VFP database. When doing an INSERT with an empty date field I get a data mis-match error.
? SQLPREPARE(myHandle, "insert into xyz (effect_dt) values (?m.datevar )")---> 1
m.datevar=DATE()
? SQLEXEC(myHandle) ----> 1
m.datevar={}
? SQLEXEC(myHandle) ----> -1
=AERROR(laError)
? laError[2] ----> "Connectivity error: [Microsoft][ODBC Visual FoxPro Driver]Data type mismatch"
A straight SQL Insert
INSERT INTO xyz (effect_dt) VALUES ( {} )
works just fine.

Any insight will be greatly appreciated.

TIA to all.........Rich
Next
Reply
Map
View

Click here to load this message in the networking platform