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
I know this is super old, but Microsoft has added a new DMV with this information since this question was asked.
SELECT dosi.sqlserver_start_time FROM sys.dm_os_sys_info AS dosi