How to get SQL performance counters? (SQL Express)

Petri X 41 Reputation points
2021-05-19T13:58:30.797+00:00

Hi,
What possibilities I do have to get performance counters installed when having SQL Express (2014) on Windows server 2016? Earlier we I had W2012R2 there were no troubles.

I'm not having the file: perf-MSSQLSERVERsqlctr.ini, so lodctr seems to be not an option.

SQL Server Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-05-20T03:21:05.333+00:00

    Hi @Petri X ,
    Does your SQL Server 2014 use 32-bit or 64-bit instance?
    If using SQL Server 2014 32-bit, you can find perf-MSSQLSERVERsqlctr.ini in Program Files (x86)\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Binn for default instance. For named instance, pref-MSSQL$instancenamesqlstr.dll is located at Program Files (x86)\Microsoft SQL Server\MSSQL12.instancename\MSSQL\Binn.
    If using SQL Server 2014 64-bit, you can find perf-MSSQLSERVERsqlctr.ini in Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Binn for default instance. For named instance, pref-MSSQL$instancenamesqlstr.dll is located at Program Files\Microsoft SQL Server\MSSQL12.instancename\MSSQL\Binn.
    If you still cannot find it, please try to launch the SQL Server Setup program (setup.exe) from SQL Server installation media-> click Maintenance in the left-hand navigation area-> Repair to start the repair operation. Please refer to this doc which might help.
    98019-01.jpg

    In addition, to add Performance Counters back for SQL Server, please refer to this article which might help.

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Petri X 41 Reputation points
    2021-05-20T07:15:56.757+00:00

    Hi,
    Unfortunately, as I told, I do not have the file on my server:

    C:\>dir /s perf-MSSQLSERVERs*.*  
     Volume in drive C is System  
     Volume Serial Number is 1234x-ABCD  
    File Not Found  
      
    C:\>  
      
      
    

    I tested the "Repair" as well with using the option:
    98090-sqlrepair.png
    But that still not bring any changes. And I had actually even some doubts to that, as I have 26 of these boxes, and none of them have those. I though if this could be because of the SQLExpress2014 and W2016 combination.

    0 comments No comments

  3. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-05-21T08:07:38.373+00:00

    Hi @Petri X ,
    Thanks for your reply.
    Could you please share us the result of “SELECT @@VERSION”?

    I though if this could be because of the SQLExpress2014 and W2016 combination.

    Actually, my SQL Server 2014 Express instance on Windows server 2016 have the perf-MSSQLSERVERsqlctr.ini.
    98500-01.jpg
    98551-02.jpg

    If your SQL Server 2014 instance is default instance and 64 bit, please try to copy the perf-MSSQLSERVERsqlctr.ini from another machine which has it and is working fine to Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Binn.

    Best Regards,
    Amelia

    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.