오늘 무엇을 도와드릴까요?

How to find when SQL Server (service/instance) was last restarted

Issue
When troubleshooting database issues, gathering some basic information can be very helpful in leading to the resolution or to identifying the cause of problems.

Product Line

Power Monitoring Expert 7.2.x

Power Monitoring Expert 8.x

Power Monitoring Expert 9.0

Power Monitoring Expert 2020

Power Monitoring Expert 2021

Power Monitoring Expert 2022

Power Monitoring Expert 2023



Environment

Power Monitoring Expert Software with SQL Server 2005-2022 versions



Cause
Database maintenance and troubleshooting possible database issues.

Resolution
*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*

Listed below are three methods to find the last time SQL Server server/service was restarted.

Method 1
The first method uses the fact that 'tempdb' will be recreated with every restart. We can check the created date (crdate) from master..sysdatabases.
SELECT crdate FROM master..sysdatabases WHERE name ='tempdb'

Method 2
The second method checks the master..sysprocesses database and check for the minimum value in the 'login_time' column.
SELECT MIN(login_time) FROM master..sysprocesses

Method 3
Examine the Windows Event Viewer and search for the most recent event indicating that the SQL server service was started.

  1. Right click on the Start button and select Control Panel > System & Security and double-click Administrative tools
  2. Double-click Event Viewer
  3. Select the type of logs that you wish to review (ex: Application, System)

NOTE: To access the Application Logs once in Event Viewer, go to Windows Logs > Application, for shutdown errors refer to Application and System logs.

    슈나이더 일렉트릭 Korea

    자세히 알아보기
    제품군
    자세히 알아보기
    제품군

    도움이 필요하신가요?

    도움이 필요하신가요?

    제품 선택기

    제품 선택기

    애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.

    견적 받기

    견적 받기

    영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.

    구매처

    구매처

    해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.

    지원 센터

    지원 센터

    한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.

    • 제품 문서
    • 소프트웨어 다운로드
    • 제품 선택기
    • 제품 대체 및 교체
    • 지원 및 연락처 센터
    • 영업소 검색
    • 견적 받기
    • 슈나이더 일렉트릭 커뮤니티
    • 채용
    • 회사 소개
    • 부정 행위 보고
    • 접근성
    • 뉴스룸
    • 투자자
    • Ecostruxure
    • 작업 검색
    • 블로그
    • 개인정보 취급방침
    • 쿠키 공지
    • 사용 약관
    • Change your cookie settings