How To Log System Monitor Data to SQL Server in Windows XP (296222)
The information in this article applies to:
- Microsoft Windows XP Professional
- Microsoft Windows XP Home Edition
This article was previously published under Q296222 SUMMARY
In Microsoft Windows XP, you can log data directly to a Microsoft SQL 2000 Server database. This article describes how to prepare a client computer to log data to a SQL database. This article does not describe how to set up and configure SQL 2000 Server or to manipulate the data from the SQL 2000 Server.
The new functionality in System Monitor enables you to log data to a SQL 2000 database by using an Open Database Connectivity (ODBC) data connection. However, this functionality is not an open ODBC adapter that you can use to log to any ODBC-compliant database.
back to the top
How to Create the Data Source Name (DSN) on the Client- Click Start, click Control Panel, and then double-click Administrative Tools.
- Double-click Data Sources (ODBC), click the System DSN tab, and then click Add.
- Double-click SQL Server, type a name for this DSN, and then type in a description for this DSN.
- Click the SQL Server computer that the database resides on, and then click Next.
- Click With Windows NT authentication using the Network Login ID, and then click Next.
- Click to select the Change the Default Database to check box, click the SQL database that you created to be the repository for the System Monitor data, and then click Next.
- Click OK to accept the defaults, and then click Finish.
- Click Test Data Source. You receive a "Tests completed successfully" message.
- Click OK, and then click OK again.
back to the top
How to Configure System Monitor to Log to SQL 2000 Server- Click Start, click Run, type perfmon, and then press ENTER or click OK.
- Double-click the Performance Logs an Alerts menu.
- Right-click Counter Logs, and then click New Log Settings.
- Type a name for this log, and then click OK.
- Click Add Objects to add the objects that you want to log, and then click Add.
- Enter the counters that you want to monitor, and then click Close.
- Click the Logs tab, click SQL Database in the Log File Type section, and then click Configure.
- In the DSN box, click the DSN that you want to connect to.
If you want to rename the logset, type a new name in the Logset name box. By default, the logset uses the name of the System log.
- Click OK, and then click Apply.
back to the top
How to Give the Correct Credentials to the Log by Using the "Run As" Option- Click the General tab.
- In the Run As box, type the credentials of a user who has the following rights:
- The correct rights to run System Monitor.
- The correct rights to the SQL database (create and read).
back to the top
Modification Type: | Minor | Last Reviewed: | 1/15/2006 |
---|
Keywords: | kbhowto kbHOWTOmaster KB296222 kbAudITPro |
---|
|