Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC with blank dates
Message
 
To
25/03/2005 09:59:39
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00999138
Message ID:
00999146
Views:
30
>I am using SQLCONNECT and SQLEXEC to connect to and insert records into SQL and VFP tables. When I do a SQLEXEC with an insert into and one of the fields being inserted is a blank date where I set the field ={} I get an error from aerrors from the vfp tables ONLY that states "[Microsoft] [ODBC Visual FoxPro Driver] Data Type mismatch."
>
>What am I doing wrong ?
>
>Thanks For Your Help !
>Stephen J. Hunt

In SQL Server table make date fields to accept NULL then in your insert instead of blank dates insert NULL to them.
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