Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 4.36 KB

File metadata and controls

52 lines (41 loc) · 4.36 KB
title SQL Server Profiler Templates and Permissions
titleSuffix SQL Server Profiler
description Learn how SQL Server Profiler works, how to use it to trace events, and where to find more information on its features.
author rwestMSFT
ms.author randolphwest
ms.date 06/05/2025
ms.service sql
ms.subservice profiler
ms.topic conceptual
ms.collection
data-tools

SQL Server Profiler templates and permissions

[!INCLUDE SQL Server Azure SQL Managed Instance]

[!INCLUDE ssSqlProfiler] shows how [!INCLUDE ssNoVersion] resolves queries internally. This allows administrators to see exactly what [!INCLUDE tsql] statements or Multi-Dimensional Expressions are submitted to the server and how the server accesses the database or cube to return result sets.

Using [!INCLUDE ssSqlProfiler], you can do the following:

  • Create a trace that is based on a reusable template
  • Watch the trace results as the trace runs
  • Store the trace results in a table
  • Start, stop, pause, and modify the trace results as necessary
  • Replay the trace results

Use [!INCLUDE ssSqlProfiler] to monitor only the events in which you're interested. If traces are becoming too large, you can filter them based on the information you want, so that only a subset of the event data is collected. Monitoring too many events adds overhead to the server and the monitoring process, and can cause the trace file or trace table to grow very large, especially when the monitoring process takes place over a long period of time.

Trace column values greater than 1 GB return an error and are truncated in the trace output.

In this section

Article Description
SQL Server Profiler Templates Contains information about the predefined trace templates that ship with [!INCLUDE ssSqlProfiler].
Permissions required to run SQL Server Profiler Contains information about the permissions that are required to run [!INCLUDE ssSqlProfiler].
Save traces and trace templates Contains information about saving trace output and about saving trace definitions into a template.
Modify trace templates Contains information about modifying trace templates by using [!INCLUDE ssSqlProfiler] or by using [!INCLUDE tsql].
Start a trace (SQL Server Profiler) Contains information about what happens when you start, pause, or stop a trace.
Correlate a trace with Windows performance log data Contains information about correlating Windows performance log data with a trace by using [!INCLUDE ssNoVersion] Profiler.
View and analyze traces with SQL Server Profiler Contains information about using traces to troubleshoot data, displaying object names in a trace, and finding events in a trace.
Analyze deadlocks with SQL Server Profiler Contains information about using [!INCLUDE ssSqlProfiler] to identify the cause of a deadlock.
Analyze queries with SHOWPLAN results in SQL Server Profiler Contains information about using [!INCLUDE ssSqlProfiler] to collect and display Showplan and Showplan Statistics results.
Filter traces with SQL Server Profiler Contains information about setting filters on data columns to filter trace output by using [!INCLUDE ssSqlProfiler].
Replay Traces Contains information that explains what replaying a trace means and what is required to replay a trace.

Related content