Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 7 - SQL Server char to datetime error
Message
De
26/01/2003 21:23:31
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
26/01/2003 19:18:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00745586
Message ID:
00745605
Vues:
31
Hi Brian

I think I have seen this with empty dates that are now null. Set empty dates to null.

>I am migrating a number of tables from native VFP tables to SQL Server as part of an upgrade project. I have a simple program that opens the VFP table and a remote view to the SQL Server table, then loops through the VFP table doing a SCATTER MEMVAR and INSERT FROM MEMVAR into the SQL Server table and a TABLEUPDATE().
>
>This works perfectly well most of the time, but some records generate error from the SQL Server about a type mismatch converting a char field to a datetype. The error seems to be almost random and not related to the data being converted. Has anyone had a similar problem or got suggestions?
>
>Thanks,
>
>Brian
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform