MSSQLWIKI

Karthick P.K on SQL Server

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

4 Responses to “How to find all the profiler traces running on my SQL Server”

  1. […] 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 […]

  2. […] How to find all the profiler traces running on my SQL Server […]

  3. 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.[…]

  4. 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

Leave a comment