Friday, October 7, 2022

SQL Server trace

 exec sp_trace_setstatus 2,1 -- Start trace

exec sp_trace_setstatus 2,0 -- Stop trace

exec sp_trace_setstatus 2,2 -- Delete trace


No comments:

Post a Comment