Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upsizing Foxpro 2.6 Tables to SQL
Message
From
18/08/2003 08:25:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/08/2003 08:20:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00820988
Message ID:
00820991
Views:
18
>I'm trying to move a few Foxpro for Windows Tables to a SQL Database (destination table exists) and I'm running into a few issues with the datetime fields on the SQL side. Is there a way in Foxpro to adjust the source table's date fields to eliminate multiple additional passes on the destination table to correct datetime fields. What happens is a empty datefield is defaulting to 12:00 am January 1st 1899 on the SQL side.
>
>thanks,
>
>Don

Don,
SQL server datetime fields cannot have empty values but .null. Set your table on SQL server to accept null for datetime fields and either send them as null or do not send at all.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform