var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: How to capture the sql query
can someone explain how the profiler get the queries that are fired against the database. This information will be useful for building a customized trace tool.
Refer to Inside SQL Server book from Kalen Daleney and also you may get better information from MS Support about designing such a tool.
look at the sp_trace_xxxxxx stored procedures