Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error converting date to SQL datetime
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01184352
Message ID:
01185404
Vues:
17
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform