Skip to content

Commit fea0683

Browse files
authored
Merge pull request MicrosoftDocs#2472 from MicrosoftDocs/v-thepet-patch-2
Update modify-trace-templates.md
2 parents f0111bc + 616af4c commit fea0683

1 file changed

Lines changed: 13 additions & 21 deletions

File tree

docs/tools/sql-server-profiler/modify-trace-templates.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,30 @@ ms.author: "jhubbard"
2222
manager: "jhubbard"
2323
---
2424
# Modify trace templates
25-
You can modify templates that are saved in a file on the local computer on which [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] 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 [Save Traces and Trace Templates](../../tools/sql-server-profiler/save-traces-and-trace-templates.md).
26-
27-
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 [Derive a Template from a Trace File or Trace Table (SQL Server Profiler)](../../tools/sql-server-profiler/derive-a-template-from-a-trace-file-or-trace-table-sql-server-profiler.md) and [Derive a Template from a Running Trace (SQL Server Profiler)](../../tools/sql-server-profiler/derive-a-template-from-a-running-trace-sql-server-profiler.md).
28-
25+
You can modify templates that are saved in a file on the local computer on which [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] 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 [Save Traces and Trace Templates](../../tools/sql-server-profiler/save-traces-and-trace-templates.md).
26+
27+
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 [Derive a Template from a Trace File or Trace Table (SQL Server Profiler)](../../tools/sql-server-profiler/derive-a-template-from-a-trace-file-or-trace-table-sql-server-profiler.md) and [Derive a Template from a Running Trace (SQL Server Profiler)](../../tools/sql-server-profiler/derive-a-template-from-a-running-trace-sql-server-profiler.md).
28+
2929
## To modify a trace template
3030

3131
1. On the **File** menu, point to **Templates**, and then click **Edit Template**.
3232

3333
2. In the **Trace Template Properties** dialog box, on the **General** tab, you can modify the server type and template name, or choose to use a default template for the server type.
3434

35-
3. On the **Events Selection**tab, use the grid control to add or remove events and data columns from the trace file as follows.
35+
3. On the **Events Selection** tab, use the grid control to add or remove events and data columns from the trace file as follows.
3636

3737
- To add an event, expand the appropriate event category in the **Events** column, and then select the event name.
3838

3939
- When you add an event, all relevant data columns are included by default. To remove a data column for an event from a trace, clear the check box in the data column for the event.
4040

4141
- To add filters, click the data column name and specify the filter criteria in the **Edit Filter** dialog box. You can also right-click the data column name, and click **Edit Column Filter** to launch the **Edit Filter** dialog box. Click **OK** to add the filter.
4242

43-
4. Click **Save**, or click **Save As**to save the trace template under another name.
44-
**To create a trace template**
45-
43+
4. Click **Save**, or click **Save As** to save the trace template under another name.
44+
4645
## Next steps
47-
**To start a trace**
48-
[Start a Trace](../../tools/sql-server-profiler/start-a-trace.md)
49-
**To run a trace from a trace template**
50-
[Create a Trace (SQL Server Profiler)](../../tools/sql-server-profiler/create-a-trace-sql-server-profiler.md)
51-
52-
**To modify a trace**
53-
[Using Transact-SQL](../../relational-databases/sql-trace/modify-an-existing-trace-transact-sql.md)
54-
55-
**To add or remove events from a trace template or trace file**
56-
[Using SQL Server Profiler](../../tools/sql-server-profiler/specify-events-and-data-columns-for-a-trace-file-sql-server-profiler.md)
57-
58-
[Using Transact-SQL](../../relational-databases/system-stored-procedures/sp-trace-setevent-transact-sql.md)
59-
46+
[Start a trace](../../tools/sql-server-profiler/start-a-trace.md)
47+
[Create a trace](../../tools/sql-server-profiler/create-a-trace-sql-server-profiler.md)
48+
[Modify an existing trace using Transact-SQL](../../relational-databases/sql-trace/modify-an-existing-trace-transact-sql.md)
49+
[Specify events and data columns for a trace using SQL Server Profiler](../../tools/sql-server-profiler/specify-events-and-data-columns-for-a-trace-file-sql-server-profiler.md)
50+
[sp-trace-setevent-transact-sql](../../relational-databases/system-stored-procedures/sp-trace-setevent-transact-sql.md)
51+

0 commit comments

Comments
 (0)