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

SQL Server uptime, Database uptime ?

$
0
0

Is there a way, preferably with T-SQL, to query how long the SQL Server service has been running?
Also how long a particular database has been running (i.e. when it was last set online)?

I'm hoping for something simpler than querying the SQL errorlog, especially as that could be cycled to a point where this info is no longer present

Cheers
MCITP: Database Administrator 2005 / 2008

Viewing all articles
Browse latest Browse all 12963

Trending Articles



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