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
28/02/2008 20:45:52
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
28/02/2008 20:27:18
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:
01297642
Vues:
52
This message has been marked as a message which has helped to the initial question of the thread.
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. ;-)
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform