• http://idealprogrammer.com/net-languages/c/idealsqltracer-simple-free-open-source-alternative-sql-profiler/ =>IdealSqlTracer is a nice open source C# project on github that uses sp_trace_create, sp_trace_filter, sp_trace_setstatus sql procs to create custom traces for you.. The advantage of IdealSqlTracer is that it takes all of the sql generated behind the scenes in a desktop application or web page, and it formats it to make it easily readable. The formatted sql is put into notepad so that you can cut-n-paste the sql and run it directly in Sql Server Management Studio (SSMS). The advantage of doing this is that it makes it possible for you to see exactly what is going on in your application or website.  I have found this to be a great debugging tool for me as a programmer.

    Here is an example screen shot of the formatted sql that is placed into notepad:

     Thanks, Wade Harvey