Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store time (not date) in SQL and query from VFP
Message
De
29/02/2008 08:40:45
 
 
À
28/02/2008 20:45:52
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01297626
Message ID:
01297682
Vues:
32
I saw that. Thanks John!

>Kevin, cool link- though I see that MS SQL2008 delivers a proper time field. ;-)
>
>Tracy, note use of 1900-01-01 as the date in the sample. If you can do this every time, then you can do searches and calculations using the time portion only. Use standard VFP TIME() format with the same parameterized SQL. If you do this, you preserve the ability to use datediff() and similar features in future. Before you decide, make sure you know whether and how you're going to handle blank/unknown time values. ;-)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform