The situation is you have a value in Seconds (XXX.XX), and you want to convert to HH:MM:SS using T-SQL.
Example:
- 121.25 s becomes 00:02:01.25
The situation is you have a value in Seconds (XXX.XX), and you want to convert to HH:MM:SS using T-SQL.
Example:
You want to multiply out to milliseconds as the fractional part is discarded.
If you want it without the date portion you can use CONVERT, with style 114
Using SQL Server 2008
Outputs:
This is what I use (typically for html table email reports)