Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Ten PITAs working with SQL Server
Message
 
À
28/07/1999 11:29:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00246861
Message ID:
00247835
Vues:
26
I just tested doing an update to a date field using {}, DTOC(), and {07/29/1999} and they all worked. Blank dates in SQL Server are returned as 01/01/1900 (different versions of the ODBC driver can return 12/31/1899). I usually check for the date to be 01/01/1900 or .NULL. to see if it is empty.

BTW, I if want to query for 01/01/1900 you can SELECT somedate FROM table where somedate = ?lddate where I assign lddate = {}.

Make sense?


>Not in SPT you haven't :-)
>
>Dates go out at 'YYYY-MM-DD' or '' and nothing else.
>
>>I have used {} with no problem.
>>
>>>Sure it is.....didja know you can send "" as a blank date but not " / / "....so, toss out all your DTOCs....
>>>
>>>>>10. Did I mention blank dates? Blank Dates!! (Deserves two).
>>>>
>>>> What?... you mean you don't like what is it - 12/31/1899 - that's blank isn't it?
>>>>
>>>>
>>>>Wayne
DLC
"Use the Right Tool for the Job!"
davidandcynthia@email.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform