I want to convert the run duration (from msdb..sysjobhistory) to an elapsed seconds figure. The duration is stored as an integer where for example
13 means 13 secs
213 means 2 mins and 13 secs = 133 secs
310213 means 31 hours, 2 mins and 13 secs = 111,733 secs
Is there any neat way of doing this?
It's SQL Server 2000 but I would prefer generic SQL