SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Profiler Questions


Profiler Questions

Author
Message
Jared Metzger
Jared Metzger
SSC-Enthusiastic
SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)

Group: General Forum Members
Points: 146 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!


Yelena Varshal
Yelena Varshal
SSCrazy Eights
SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)

Group: General Forum Members
Points: 8724 Visits: 600

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

dineshvishe
dineshvishe
Mr or Mrs. 500
Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)Mr or Mrs. 500 (510 reputation)

Group: General Forum Members
Points: 510 Visits: 342
When you are tracing event on database name ,you see all details like select and all opration on profiler.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)SSC Guru (217K reputation)

Group: General Forum Members
Points: 217307 Visits: 46278
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

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


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search