Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error converting date to SQL datetime
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01184352
Message ID:
01184358
Views:
15
This message has been marked as the solution to the initial question of the thread.
>I am appending records in a VFP table to the corresponding SQL table using a remote view. About 1/4 of them append properly. The remainder generate an error indicating that conversion of character data to datetime has created an out-of-range datetime value. All 7 of the SQL datetime fields correspond VFP date fields. Any ideas what am I missing here?

SQL Server dateime data type doesn't support dates before 01/01/1753 and it doesn't support empty values either.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform