I want to store time in a table and I take time(7) as datatype for storing the time. When I subtract two DateTimes, I got "1.18:36:36.7484253" as result in my TimeSpan variable. But the problem is that when I insert this value in my table, I got this error:
SqlDbType.Timeoverflow. Value'1.18:36:36.7484253'is out of range. Must be between00:00:00.0000000and23:59:59.9999999.
I knew about this error and my question is what datatype I can use for this. I am using SQL Server 2008 and C#.
TimeSpan.Ticksproperty...