Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on SQL SmallDateTime field
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01044554
Message ID:
01044556
Views:
11
>When I add a record (from VFP app) to SQL Server database table, field of type SmallDateTime gets value "1/1/1900". Is this by design? The field is set to allow NULLs so I thought that if I leave the date blank, it will set the value to NULL.

The empty date value is not the same as NULL and neither ODBC driver nor SQL Server support empty dates. You've to ommit that field from insert or pass null.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform