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