Thoughts on life, liberty, and information technology

Windows Server/SQL Server Performance Monitor Template

One of the nice things about Performance Monitor in Windows 2000/2003 is that it can be plugged into an HTML page as an ActiveX control. Even nicer than that is the fact that you can easily edit the parameters for the console by editing the HTML page.

Where I work, we have a handful of SQL servers. To monitor them, I created a performance monitor view with a handful of core counters on one server and saved it as an HTML file. (This is done using the Performance Monitor’s System Monitor. Simply set up your counters then right-click the monitor window and choose Save As.) Making subsequent views for other servers was as simple as making a copy of the HTML file, opening it in Notepad, and changing all server name instances.

Below is the contents of a simple performance monitor HTML page that can be used to monitor a server running Microsoft SQL Server 7.0 or higher. To use it, copy the contents into a text file, rename all instances of SERVERNAME to the name of your server, save it as a .htm file, and open it in Internet Explorer. Viola! Quick and easy view to your server’s core performance counters.





<object>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
</object>


2 responses to “Windows Server/SQL Server Performance Monitor Template”

  1. Phuong Moctezuma Avatar
    Phuong Moctezuma

    Howdy, I figured you will be able to help me. I have an Microsoft SQL .ldf and .mdf file that I have to restore. Any opinions on how to achieve this? Cheers

    Like

  2. brian Avatar
    brian

    MDF and LDF files are raw SQL database files. You need to “attach” them to a new server (must be a compatible version of SQL, of course). In the SQL management console, right-click the Databases folder and choose “Attach”.

    Like

Leave a reply to Phuong Moctezuma Cancel reply