Answer by WilliamD
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...
View ArticleAnswer by Grant Fritchey
I think it'll probably work. I'd call it an undocumented artifact and I wouldn't want to base major assumptions on it that affect my pay check or something like that, but yeah, I think it'll work.
View ArticleAnswer by Blackhawk-17
Another way... and it won't work for everyone as some people use daily error logs etc. EXEC master.dbo.xp_readerrorlog 0, 1, 'Recovery is complete.', NULL, NULL, NULL, N'asc' This basically returns...
View ArticleAnswer by DaniSQL
I have compiled what is mentioned in this question and [in this blog][1] and run it on my machine: SELECT create_date FROM sys.databases WHERE name = 'tempdb' select start_time from sys.traces where...
View Article