Only for SQL 2008 an above, but this would be better:
SELECT sqlserver_start_time
FROM sys.dm_os_sys_info
EDIT:
I'm not sure how accurate the `sys.dm_exec_requests` version would be, what happens to that DMV if you drop clean buffers?
EDIT 2: Drop clean buffers doesn't change the entries of `sys.dm_exec_requests` , so that is my own myth busted! :)
p.s. don't test this assumption on a prod box. I didn't..... honest.....
↧