Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store time (not date) in SQL and query from VFP
Message
 
 
To
03/03/2009 14:14:39
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01297626
Message ID:
01385291
Views:
47
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform