Quantcast
Channel: Answers by "Jason Crider"
Viewing all articles
Browse latest Browse all 15

Answer by Jason Crider

$
0
0

There's no way I can write that whole thing for you, but here's a couple of thoughts.

I've used the conversion like this:

SELECT DATEADD(hour, -5, GETUTCDATE())

And also like this:

SELECT TOP 100
            a.ID,
            DATEADD(hour, -5, a.UTCCollectionDateTime)
    FROM dbo.ServerStatistics a
            INNER JOIN dbo.ServerActivity b
            ON a.SQLServerID = b.SQLServerID
    WHERE a.SQLServerID = '1'  

Viewing all articles
Browse latest Browse all 15

Trending Articles