I\'d like if its possible to work out from inside sql server how long sql server has been running.
Would like to use this in conjunction with one of the DMV\'s for unuse
SELECT login_time FROM sys.dm_exec_sessions WHERE session_id = 1
will give you a datetime for when the server was started.
datetime