Export (0) Print
Expand All

sys.trace_categories (Transact-SQL)


Applies To: SQL Server 2014, SQL Server 2016 Preview

Similar event classes are grouped by a category. Each row in the sys.trace_categories catalog view identifies a category that is unique across the server. These categories do not change for a given version of the SQL Server Database Engine.

For a complete list of supported trace events, see SQL Server Event Class Reference.


This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use Extended Event catalog views instead.

Applies to: SQL Server (SQL Server 2008 through current version).

Column name

Data type




Unique ID of this category. This column is also in the sys.trace_events catalog view.



Unique name of this category. This parameter is not localized.



Category type:

0 = Normal

1 = Connection

2 = Error

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft