Created
January 10, 2017 14:00
-
-
Save bartread/41c23c98d1823fb450219d2109ddfa5d to your computer and use it in GitHub Desktop.
Gets a list of all the distinct event types recorded in a SQL Profiler trace table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT te.name | |
FROM [YOUR_TRACE_SCHEMA_NAME].[YOUR_TRACE_TABLE_NAME] AS d | |
INNER JOIN sys.trace_events AS te | |
ON te.trace_event_id = d.EventClass; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment