SQL Server Trace – Who Is Running It and How to Stop It?

sql server

Can you please help me out in finding who is running SQL Server Trace(profiler) on Server machine.?

It looks like, some people are running trace on live system on SQL DB, which make application super slow.

We need to find out who is running that or who ran that in the past? any idea how to do this?

Thanks.

Best Answer

This will stop a trace

DBCC TRACEOFF (1222,-1)

Some traces are system traces. For example trace 1222 turns on deadlock logging into the SQL Server error logs. Be careful and find out what you are turning off before you do it.