Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7 - SQL Server char to datetime error
Message
From
26/01/2003 21:23:31
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
26/01/2003 19:18:40
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00745586
Message ID:
00745605
Views:
28
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
Previous
Reply
Map
View

Click here to load this message in the networking platform