Quantcast
Viewing latest article 5
Browse Latest Browse All 10

Answer 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 is_default = 1 SELECT login_time FROM sys.dm_exec_sessions WHERE session_id = 1; SELECT sqlserver_start_time FROM sys.dm_os_sys_info; EXEC sp_readerrorlog 0,1,'Copyright (c)' SELECT MIN(start_time) as [Instance Started] FROM [sys].[dm_exec_requests] and NET STATISTICS SERVER All give a slightly different result. I usually use the first and the last one. [1]: http://www.sqldbadiaries.com/2011/03/07/when-was-sql-server-restarted/

Viewing latest article 5
Browse Latest Browse All 10

Trending Articles