How to find all the profiler traces running on my SQL Server
Posted by Karthick P.K on April 26, 2010
select
[Status] =
case tr.[status]
when 1 THEN 'Running'
when 0 THEN 'Stopped'
end
,[Default] =
case tr.is_default
when 1 THEN 'System TRACE'
when 0 THEN 'User TRACE'
end
,[login_name] = coalesce(se.login_name,se.login_name,'No reader spid')
,[Trace Path] = coalesce(tr.[Path],tr.[Path],'OLE DB Client Side Trace')
from sys.traces tr
left join sys.dm_exec_sessions se on tr.reader_spid = se.session_id
Query optimization « MSSQLWIKI said
[…] SQL Trace: Stop all the profiler traces running on the server. Identify the traces which are running on the server using the query in This Link […]
Top SQL Server blogs from MSSQLWIKI « MSSQLWIKI said
[…] How to find all the profiler traces running on my SQL Server […]
Shalanda Tanouye said
How to find all the profiler traces running on my SQL Server
[…]It’s pure to have a few of these signs after a harmful occasion.[…]
April said
Somebody please help explain this to me my husband locked me out of the phone and I don’t know what to do I need help in real life