Tracing query normally means server side capture:
1. SQL Server Profiler
2. Running a trace query (e.g. Trace Template)
Below is an alternative way of capture query, on server OR client side:
Here is one example I use to capture query and returned data using Microsoft Network Monitor:
If you like open source, you could do same thing using WireShark:
I haven’t had the scenario I have to use one of these software to capture queries, just blogging it for fun.