Specifies the system objects filter, or if system objects are to be captured or not, for the events specified.
xp_trace_setsysobjectsfilter {queue_handle, sysobjects_value}
0 (success) or >1 (failure)
xp_trace_setsysobjectsfilter returns this message:
The command(s) completed successfully.
Execute permissions for xp_trace_setsysobjectsfilter default to members of the sysadmin fixed server role but can be granted to other users.
This example enables the capturing of system objects by setting sysobjects_value to 1.
USE master
DECLARE @queue_handle int, @column_value int
SET @column_value = 16|32|8192|128|512
EXEC xp_trace_addnewqueue 1000,
5,
95,
90,
@column_value,
@queue_handle OUTPUT
EXEC xp_trace_setsysobjectsfilter @queue_handle, 1
Monitoring with SQL Server Profiler | xp_trace_getqueueproperties |
xp_trace_addnewqueue | xp_trace_getsysobjectsfilter |
xp_trace_enumqueuehandles | System Stored Procedures (SQL Server Profiler Extended Procedures) |