Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

DATEDIFF format

$
0
0
Hi,I use the below code, I can get the duration as hh:mm:ss.0000000. [code="sql"]CONVERT(TIME, DATEADD(SECOND, DATEDIFF(SECOND, last_request_end_time, GETDATE()), 0), 114) AS Duration[/code]But how I can get the format like dd:hh:mm:ss?Thanks,

Viewing all articles
Browse latest Browse all 3145

Latest Images

Trending Articles



Latest Images