IBM Support

Creating and reviewing a SQL Server trace files

Troubleshooting


Problem

This technote identifies how to create and review Microsoft® SQL Server trace files to identify issues with IBM® Rational® RequisitePro® projects.

Resolving The Problem

How to generate a SQL Server trace file:

  1. Open SQL Profiler by selecting Start > Programs > SQL Server > Profiler
  2. Select Create a new trace file
  3. Create the trace file by selecting File > New Trace
  4. Select the appropriate server where the database resides from the SQL Server drop down
  5. Select SQL Server Authentication
  6. Enter the sa user name and password or another account that is a SQL system administrator
  7. The Trace Properties Dialog window will appear, select the General tab, enter a name for the trace in the Trace Name field, check the option Save to file and enter a file name to save the trace to
  8. Select the Events tab, in the Available event classes:, select and Add the following:
    Errors and Warnings
    Stored Procedures
    Transactions
  9. Select the Filters tab, select DatabaseName\Like and provide the name of your RequisitePro database.
  10. Ensure that RequisitePro is open prior to starting the trace. Select the RUN command
  11. Once the RUN command is selected, the trace will begin, and will record any action performed by the user.
  12. If the trace needs to be paused select the Pause option, if the trace needs to be Stopped, select the Red stop arrow.

Reviewing a SQL Server trace file:

A SQL trace file generated in the SQL Profiler will create file with a .trc extension. This file is a text file. Although a portion of it may be read in a text editor, it is recommended to review this file in the Profiler in SQL Server.

The Profiler will give the user the ability to review the trace file more fully. Users will be able to view transactions that have occurred, stored procedures, as well as error messages.

To open the trace file:

  1. Open SQL Profiler, Start > Programs > Microsoft SQL Server > Profiler
  2. Select File > Open >Trace File.
  3. Navigate to the directory where the trace file was stored and open it.

[{"Product":{"code":"SSSHCT","label":"Rational RequisitePro"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Database: SQL Server","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2002.05.20;2003.06.00;2003.06.01;2003.06.10;2003.06.12;2003.06.13;2003.06.14;2003.06.15;2003.06.16","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

156937721

Document Information

Modified date:
16 June 2018

UID

swg21132269