June 1, 2005 at 9:08 am
I am battling with profiler trying to trace all select, insert, delete, and updates against a specific table. I have specified a Database ID in the filter as well as an object ID for the table in question. However the results are still displaying all actions for the Database and not filtering out the table I need. I haven't been able to find any good documentation on profiler. Any thoughts on a better way to trace these events for a specific table? Or any links to some in depth reading on SQL Profiler? Thanks for your help!
June 1, 2005 at 10:55 am
Jared,
For some reason Object ID does not really work.
You can try the following: Select an Event SQLStmtCompleted. Filter by Database ID as you already do, TextData Like %FROM MyTableName%, Text Data Like %UPDATE MyTableName%, Text Data Like %DELETE MyTableName%', (and whatever you may think for Insert too), Application Name Not Like SQL Profiler, Not Like MS SQLEM
You still will have some extra entries, but much less then without filtering. I excluded MS SQLEM (Enterprise Manager) because for some reason it puts the entry without any EventID or TextData even if you open another table.
Do not forget that you may have performance issues running traces.
Yelena
Regards,Yelena Varsha
May 19, 2013 at 9:21 am
When you are tracing event on database name ,you see all details like select and all opration on profiler.
May 19, 2013 at 10:02 am
Please note: 8 year old thread.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply