Missing perf-MSSQLSERVERsqlctr.ini

  • I attempted to install the latest CU (31) for my SQL 2017 server but received an error message stating "Service Pack Failure: MissingRegistryKeyException" due to a missing registry key. It appears that our SQL server is missing certain performance counters as I was only able to retrieve 57 row records after executing the command "select * from sys.dm_os_performance_counters order by object_name". I have tried to restore the SQL Server performance counter by running the command "lodctr perf-MSSQLSERVERsqlctr.ini", but the command failed due to the absence of the "perf-MSSQLSERVERsqlctr.ini" file. How can I recover this file?

  • did you check this article "SQL Server Performance Counter are Missing"

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Yes. However, perf-MSSQLSERVERsqlctr.ini is missing. The counters could not be restored.

  • Are you using a named instance, as if you are the file will not be called perf-MSSQLSERVERsqlctr.ini?

     

    But if it the file is generally missing, then you will need to run the installer and repair the instance.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply