Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty dates in SQL Server
Message
From
14/12/2001 10:25:42
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
14/12/2001 10:05:59
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00593889
Message ID:
00594404
Views:
27
J you are correct I've just tested in SQL Serve 2000 and is possible I didn't know that I allways thought that dates in SQL Server must have a value or be null.
lesson test allways something and don't take what other says.

>That is incorrect. You can insert an empty date with '' which will show as '1/1/1900' and obtain a result set that contains such records with the statement on my previous reply. This is the way it works in 6.5 and 7.0, haven't tested on SQL 2000 though.
>
>>Hi just one thing this will allways return an empty cursor since in SQL server there are not such things as an empty date dates will have some value our will be null never empty.
>>
>>>>Can anyone recommend a good solution for displaying and detecting empty dates in SQL Server (which are returned as 1/1/1900 12:00 AM)?
>>>>
>>>>Thanks.
>>>
>>>Joel,
>>>
>>>If you already have empty dates that show 1/1/1900 you can check for those with '' as in
>>>
Select * From myTable Where myDateField=''
>>>HTH
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform