Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Profiler Questions Expand / Collapse
Author
Message
Posted Wednesday, June 01, 2005 9:08 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, September 17, 2012 9:05 AM
Points: 30, Visits: 42

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!

Post #186617
Posted Wednesday, June 01, 2005 10:55 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, December 26, 2013 9:45 AM
Points: 3,475, Visits: 577

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 Varshal

Post #186678
Posted Sunday, May 19, 2013 9:21 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, March 25, 2014 10:53 PM
Points: 62, Visits: 320
When you are tracing event on database name ,you see all details like select and all opration on profiler.
Post #1454340
Posted Sunday, May 19, 2013 10:02 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 7:59 AM
Points: 41,530, Visits: 34,447
Please note: 8 year old thread.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1454347
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse