Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

SQL Server uptime

$
0
0
Hi.  Is there a way to directly or indirectly obtain how long the Sql Server service has been running since last restart?  I realize I can look in the SQL Server error log, but I want to get the info using T-SQL.  I want the information so I know how long any given cumulative DMV has been collecting data.  Thanks!

Viewing all articles
Browse latest Browse all 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>