change milliseconds to XXh XXm XXs (to plot bar chart)

Hi,

I have to total Active Time in Milliseconds and this can even go to many hours beyond 1 day (24 hours).
For example in some cases on a monthly basis a User can be active on an application up to 50-60 hours. In that case can I get my report to show in following format

50:33:22 or 50H 33M 22S (and still can be used in chart)

What I see as an option is to convert my active time into each of these hours, minutes and seconds individually. But how to use them in a Graph (User name on Y axis and Active time on X axis showing the values)

My Database is SQL Server 2005.

Ram.


sramlaxman (BOB member since 2010-11-24)

Please do not cross-post. It leads to fragmented discussions and is against our forum rules.


Nick Daniels :uk: (BOB member since 2002-08-15)