This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
In sqlserver -2005 i am created three columns
Column name datatype
one is BeginTime datetime
second EndTime datetime
third TotalTime in properties computed column specification Formula ([EndTime]-[BeginTime])
10/12/2009 12:00:00 AM
12/12/2009 12:00:00 AM
result come like -- 3/3/1900 12:00:00 AM but this is wrong .
Please any one help.
SELECT DATEDIFF(year, '2005-12-31 23:59:59.9999999'
, '2006-01-01 00:00:00.0000000');
SELECT DATEDIFF(minute, '2005-12-31 23:59:59.9999999'