Hi Dears i received request from the developers by the Staging DB was down yesterday evening, between 6:00 PM to 9:00 PM, can you please advice at this time to do Scientific investigation and troubleshooting so at this time you should check 2 point :
- Last SQL Server instance restart.
- Last DB server (windows services ) restart.
Last SQL Server Restart :
we can check it easily and by the Easiest ways (SQL Query)
SELECT sqlserver_start_time FROM sys.dm_os_sys_info
SELECT ‘Statistics since: ‘ + CAST(sqlserver_start_time AS VARCHAR) FROM sys.dm_os_sys_info
Last DB Server (Windows Services) Restart:
First Option
This method helps you to figure out root cause for the restart.
start -> run -> eventvwr
Choose: Windows Log – > System
Open filter and following Event Id’s
6005 to see when the Event Log service was started. It gives the message “The Event log service was started”.
6006 to see when there was a clean shutdown. It gives the message “The Event log service was stopped”.
6008 to see when there was a dirty shutdown. It gives the message “The previous system shutdown at time on date was unexpected”.
6009 is logged during every boot.
Second Option(CMD):
Run the following from a command prompt:
systeminfo | find “Time:”
The output will look something like this:
System Boot Time: 11/12/2013, 1:23:45 AM

Like this:
Like Loading...
Related
Published by Mustafa EL-Masry
I am Microsoft database consultant working as a Database administrator for more than +10 Years I have very good knowledge about Database Migration, Consolidation, Performance Tuning, Automation Using T-SQL, and PowerShell and so many other tasks I do it in multiple customers here in KSA and as of now, I am working in Bank Albilad managing the core banking system that is hosted in SQL Server Database 8 TB. Also, I am Microsoft certified 2008 and 2016 in SQL Server (2x MCTS, 2x MCTIP, MCSA, MCSE) and I am Microsoft Certified Trainer (MCT) also I am azure Certified (AZ-900, AZ-103) also I was awarded by Microsoft Azure Heroes 3 times as (Azure Content hero, Azure Community hero and Azure Mentor) For more information check my page
https://mostafaelmasry.com/about-me/
View all posts by Mustafa EL-Masry