Script that trace SQL Server Database activities

How to run the traces for the database in SQL server, is there any script for that ? Also, I want to trace every single activity of my database.?

SQL Profiler?

If there is much activity this will produce LARGE amounts of data. Be prepared for that.

See if this might work for you:

I wrote to capture all SQL activity to feed ClearTrace.

1 Like