here's one way:declare @t table (time int)insert into @tselect 0union allselect 345union allselect 152341declare @start datetimeselect @start = '2006-08-16 00:00:00.000'select dateadd(s, convert(int, right(tempVal, 2)), dateadd(n, convert(int, substring(tempVal, 3, 2)), dateadd(hh, convert(int, left(tempVal, 2)), @start)))from(select right(replicate('0',6) + convert(varchar(6), time), 6) as tempValfrom @t) t1Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp