Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty dates in SQL Server
Message
De
14/12/2001 10:25:42
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
14/12/2001 10:05:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00593889
Message ID:
00594404
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform