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
 
 
À
03/03/2009 14:14:39
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:
01385291
Vues:
45
>>How do you create time and date only portion of the dates? (SQL Server 2005)
>>
>>Thanks in advance.
>
>Not sure what you are asking... For cases where I only want to store and track the time and not a date, I use a datetime in sqlserver (has to be compatible with SQL 2000) field and store every date as 01/01/1901 so I can query and sort on the time.

How can you store only time portion of the datetime in the character field?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform