Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty dates on remote views
Message
From
14/01/2003 00:01:10
 
 
To
13/01/2003 21:55:37
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00741193
Message ID:
00741292
Views:
13
Hi Cindy,
Actually, It has been a couple of years since I tested this, but if I remember correctly, VFP databases accessed via ODBC returns 12/30/1899 when an empty date is encountered and the field does not accept nulls. SQL Server and Oracle (I think) return 1/1/1900 for a blank date and I think Paradox returns yet another date. I remember thinking this was very wierd.

Elmer

>>I have a remote view wich acceses a single table from a vfp database; some fields are date type.
>>I have two problems:
>>1. When the base table has an empty value for date fields, the remote view shows {31/12/1899}
>>2. An error occurs when I try to send an empty value for a date field { / /}through the remote view.
>>
>>Do I have to deal with this specific date to handle empty data, or is there any solution to make this work in a simpler way (send/receive empty values for date fields)?.
>
>SQL Server has no concept of an empty date - since it has to have a date or a null it makes uup a date and that's why you get {31/12/1899}.
>
>If the field accepts NULL values then send .NULL. when you update the date fields. When you're retrieving data you'll have to deal with the {31/12/1899} as if it's a NULL or empty date.
Previous
Reply
Map
View

Click here to load this message in the networking platform