Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i stop auotmatic value updation while import to
Message
From
09/11/2005 02:49:42
 
 
To
09/11/2005 02:29:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01066687
Message ID:
01066689
Views:
19
This message has been marked as the solution to the initial question of the thread.
Hi,

MS SQL-Server doesn't have the concept of an empty date(time), actually i don't know a tool other than VFP that differentiates between acutal date values, empty dates, and NULL values.

In SQL Server a date either has a value like 2005-01-01 or is NULL.

Unfortunately VFP upsizes empty date values not as explicit NULL, so SQL-Server uses a default value (1900-01-01).

You can replace your empty dates with NULL, then they're stored as NULL in SQL-Server also.

In you reports you then can easily check with the ISNULL() function for empty values.

Regards
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform