Event ID for SQL Server Stopped and Event ID for SQL Agent Stopped

MS Techie 2,751 Reputation points
2021-08-26T15:24:28.76+00:00

In the Windows Event Viewer,

1)what is the Event ID for SQL Server Stopped and
2)what is the Event ID for SQL Agent Stopped

Will the EVENT-Type be Information or ERROR or Warning for SQL Server stopped.

SQL Server | Other
{count} votes

Accepted answer
  1. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-08-27T02:21:08.023+00:00

    Hi MSTechie-7364,

    what is the Event ID for SQL Server Stopped

    When SQL Serer stopped, There will be an information type Event ID 17148 (SQL Server is terminating in response to a 'stop' request from Service Control Manager. This is an informational message only. No user action is required.) in the application log and an information type Event ID 7036 (The SQL Server (instancename) service entered the stopped state.) in the system log.

    126910-image.png

    126916-image.png

    what is the Event ID for SQL Agent Stopped.

    when SQL Server Agent stopped, there will be an information type Event ID 15457 (Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.) and an information type Event ID 7036 (The SQL Server Agent(instancename) service entered the stopped state.) in the system log.
    126963-image.png

    126956-image.png

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.


1 additional answer

Sort by: Most helpful
  1. Ronen Ariely 15,206 Reputation points
    2021-08-27T01:39:56.847+00:00

    Good day,

    (1) Open the SQL Server Configuration Manager

    (2) Open event viewer -> windows log -> application -> sort the information by date

    (3) Using the SQL Server Configuration Manager Stop the server

    (4) Check the events which were added in the event viewer

    Next do the same for the SQL Server Agent service

    Note! Stopping the SQL Server will stop related services and you will probably get a few events

    126879-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.