PRB: Performance Monitor for SQL Performance Counters MissingLast reviewed: April 29, 1997Article ID: Q112610 |
The information in this article applies to:
- Microsoft SQL Server version 4.2
SYMPTOMSThe SQL Server for Windows NT performance counters may, under some conditions, not be visible when PERFMON.EXE (Performance Monitor) is run from a Windows NT network client. This is most frequently seen following a restart of the server machine.
CAUSESQL NT monitors a wide variety of SQL-specific performance counters. These counters are visible as objects in the Performance Monitor (perfmon) program. If a Windows NT network client is monitoring either SQL or non-SQL performance counters, and if the server machine is restarted, thereafter, the SQL performance counters may not be visible. They will be visible if perfmon is run locally on the server machine. The extensible SQLCTRS.DLL acts as the interface between SQL Server and perfmon and is what exports the counters. If perfmon is run locally, the ADVAPI32.DLL process is responsible for loading any perfmon extensible DLL. If perfmon is run from a network client, SCREG.EXE is responsible for loading any perfmon extensible DLL. ADVAPI32 and SCREG are not part of SQL Server, but are Windows NT components. SCREG.EXE can become unable to load the SQLCTRS.DLL if perfmon sessions are running on network clients and if the server machine is restarted. You may see one or both of these errors in the Windows NT application event log:
Event ID 4005: Load of a required DLL failed. Make sure the DLL file is in the PATH. DOS Error number is returned in the data. Event ID 2: OpenSQLPerformanceData: Cannot Connect to SQL Server - SERVERNAME where SERVERNAME is the name of your SQL Server. WORKAROUNDFollowing a restart of the server machine, if any perfmon sessions are running against it from network clients, you may need to momentarily discontinue these sessions until SQL NT starts. If SQL NT has already started, you can simply momentarily shut down any perfmon sessions running on network clients. This will immediately restore the ability to monitor SQL NT performance counters, and further perfmon use can continue as before. The perfmon sessions running on network clients can be shut down manually, or remotely via several ways.
|
Additional query words: Windows NT
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |