Quantcast
Channel: Answers for "Checking when the SQL Instance started"
Browsing index pages (10 articles)
↧

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...

View Article


Answer by salum

you can get instance startime by simply quering tempdb creation time.

View Article


Answer 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 Article

Answer 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 Article

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 Article


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...

View Article

Answer by salum

you can get instance startime by simply quering tempdb creation time.

View Article

Answer 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 Article


Answer 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 Article


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 Article
Browsing index pages (10 articles)


Latest Images