INF: How to Set Up SQL Performance Monitor Database AlertsLast reviewed: April 3, 1997Article ID: Q110904 |
The information in this article applies to:
- Microsoft SQL Server version 4.2
SUMMARYWith SQL Server for Windows NT, the NT SQL System Administrator has the advantage of having the additional functionality provided by the Windows NT Performance Monitor. This additional functionality provides the ability to monitor various activities with NT SQL Server as it is performing its tasks. One valuable function is the ability to "Alert" selected clients/workstations that certain conditions on the NT SQL Server exist. This article will illustrate how to setup the SQL Performance Monitor so that a predefined Alert will automatically be loaded during startup after an Administrator logs on to the Windows NT server. The Alert that will be used in this example will be the PERCENT OF LOG SPACE USED for a selected database. First some background information is needed in order to understand how this will be done.
Background InformationThere are two slightly different forms of Performance Monitor available from the Windows NT Program Manager. The Windows NT Performance Monitor can be found in the Administrative Tools Group, while the SQL Performance Monitor exists in the SQL Server for Windows NT Group. The primary difference between the two program items is that when the SQL Performance Monitor starts up, a file called SQLCTRS.PMC, located in the C:\SQL\BINN directory, is called and passed as a parameter to PERFMON.EXE (both program items call PERFMON.EXE). SQLCTRS.PMC has the initial default SQL Server Performance Monitor settings. A feature of PERFMON.EXE is that it allows you to configure your view of the system and save this snapshot in a file for later use. The two configuration files that you can setup and save are the Alerts file and the "Workspace" file. The Workspace file, which contains PERFMON chart settings and alerts, is saved with a default extension of "PMW." The Alert file containing the user configured alerts is saved with a default extension of "PMA." The example listed under the More Information section describes the creation and use of a Workspace file that will be passed as a parameter to PERFMON.EXE allowing it to automatically start with a user configured SQL Server Database Log Alert.
MORE INFORMATIONThe following description will step you through the process of creating the Workspace file to creating an icon in the Program Manager Startup Group. The first thing to do is to create a workspace file that has an alert. (The following should be done as the System Administrator or as a member of the Administrators group.)
Additional InformationAnother article Q110565, titled "Automatic Transaction Log Dumping via PERFMON" discusses exactly how to execute a batch script that will truncate a user database log when a correctly configured alert fires.
|
Additional query words: 4.20 Windows NT
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |