How to fix Sql Server Extension Service from terminating unexpectedly

Santos, Carlos 0 Reputation points
2024-10-29T18:47:36.7933333+00:00

We have two SQL Server 2017 database servers running on Windows Server 2019 Datacenter.

Servers were setup with Always On High Availability (AOHA).

A month ago we started seeing the following error messages in Event Viewer. Both errors show up simultaneously.

User's image

User's image

What may be causing this service to failed and restart every 5-10 minutes?

SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Khaled Salameh 10 Reputation points
    2024-11-24T19:33:21.32+00:00

    Faced a similar issue, the Service was unable to find the ".SETTINGS" file, this file usually exists in :

    C:\Packages\Plugins\Microsoft.AzureData.WindowsAgent.SqlServer\VERSION\RuntimeSettings\1.Settings

    In my case, it was in:

    C:\Packages\Plugins\Microsoft.AzureData.WindowsAgent.SqlServer\1.1.2769.203\RuntimeSettings\1.Settings

    And for some reason, the SqlServerExtension.Service.exe Service was trying to load an older version 1.1.2735.199.

    You can identify which version is causing the error by stopping the service "Microsoft Sql Server Extension Service" , then going to "C:\Program Files\Sql Server Extension" using CMD and running SqlServerExtension.Service.exe., when doing so, it should point out which version it is trying to load, see this screenshot:

    User's image

    As you can see, it is trying to load from Agent Version ending with .199 while the latest is 203, I copied the files from 203 to 199 folder and it worked!

    2 people found this answer helpful.

  2. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2024-10-30T22:19:50.01+00:00

    First of all, ask yourself what you use the extension for and if it is needed. I know I have it installed on one of my lab machines, because I played with Purview. But maybe the extension is good for other services as well.

    If you are using the service for something, does that function normally?

    If you don't know for what purpose you are using it, a simple solution is to uninstall it.

    Else, I guess you need to open a support case. It is obviously a bug in the product.

    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.