Share via


Modifying Trace Templates

You can modify templates that are saved in a file on the local computer on which SQL Server Profiler is running. You can also modify templates derived from those files. When you modify existing templates, you edit template properties such as event classes and data columns, in the same order that the properties were set originally, on the Events Selection tab of the Trace Properties dialog box. Event classes and data columns can be added or removed, and filters can be changed. After the template is modified, a user-specific template is created and the original system template is left intact. For more information, see Saving Traces and Trace Templates.

You may need to derive a template from an existing trace file if you cannot remember (or have not saved) the original template that was used to create the trace, or if you want to run the same trace at a later date. When working with existing traces, you can view the properties, but you cannot modify the properties. To modify the properties, stop or pause the trace. For more information, see How to: Derive a Template from a Trace File or Trace Table (SQL Server Profiler) and How to: Derive a Template from a Running Trace (SQL Server Profiler).

To create a trace template

How to: Create a Trace Template (SQL Server Profiler)

To run a trace from a trace template

How to: Create a Trace (SQL Server Profiler)

To modify a trace template

Using SQL Server Profiler

Using Transact-SQL

To add or remove events from a trace template or trace file

Using SQL Server Profiler

Using Transact-SQL

See Also

Concepts

Starting, Pausing, and Stopping Traces

Help and Information

Getting SQL Server 2005 Assistance