October 19, 2011 at 2:30 pm
Hello all
I have the special need to capture all the queries that run against a database, how can I do this? I tried with the profiler but it returns much more data tha the one i need
Thanks in advance!
October 19, 2011 at 2:32 pm
a trace is pretty much the only way you can capture all queries. You can pare down the result in profiler fairly easily. You can dial it in for a single database, users, type of commands etc.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
October 19, 2011 at 2:40 pm
Just set the Events Selection page to filter on the DatabaseName you want to capture.
October 19, 2011 at 3:16 pm
I haven't see the option to save the data into a table, that will do
Thanks all
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply