Alphabetically lists all currently defined trace queue names.
xp_trace_enumqueuedefname {is_shared} [, 'queue_name']
0 (success) or >1 (failure)
Column name | Description |
---|---|
QueueDefinitionName | Name of a currently defined trace queue |
Execute permissions for xp_trace_enumqueuedefname default to members of the sysadmin fixed server role but can be granted to other users.
This example retrieves all currently defined and shared queue names.
USE master
EXEC xp_trace_enumqueuedefname 1
Here is the result set (output may vary):
QueueDefinitionName
-----------------------------------------------------------------------
DemoQueue
London Attention
London Events
Seattle SQL Batch Starting and Completing
(4 row(s) affected)
This example retrieves all currently defined and shared definition trace queue names, in alphabetic order, that follow the London Events trace queue name.
USE master
EXEC xp_trace_enumqueuedefname 1,
'London Events'
Here is the result set (output may vary):
QueueDefinitionName
-----------------------------------------------------------------------
London Events
Seattle SQL Batch Starting and Completing
(2 row(s) affected)
Monitoring with SQL Server Profiler | xp_trace_loadqueuedefinition |
xp_trace_addnewqueue | System Stored Procedures (SQL Server Profiler Extended Procedures) |