Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have some a C# property of type TimeSpan. I need to store this TimeSpan value in a SQL Server 2005 database. I know that SQL Server 2008 has the time data type. However, because I am using SQL Server 2005, I am not sure which data type is the best one to use to store a TimeSpan value in.
Can someone please tell me the best type to use for a TimeSpan value?
Thank you
Posted

You could use a longInt, and just store the TimeSpan.Ticks property.
 
Share this answer
 
my freind
I type a date time there and I just want my time separating her do? How can I do this will make
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900