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:
01185404
Views:
16
>Thanks, Sergey. Outlying date values were definitely the bulk of the problem in this instance. But why does a date value < 01/01/1753 generate an error message about character values? That was misleading...

Hi Lynda,

The SQL Server doesn't have special delimiters for datetime literals, like in VFP. The datetime literals can eaither be represented as string or as numeric values. I guess, VFP data type is converted to a string and passed to SQL Server as a part of INSERT command. You can use SQL Profiler to see what is actualy sent to SQL Server from VFP or any other source.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform