How to profile for one table in SQL Server?

天涯浪子 提交于 2019-12-03 09:38:02
Damian Leszczyński - Vash

You can't set filter to trace specific table directly.

What you can do is specify a filter for Text Data:

File -> Properties -> Event Selection -> Column Filters -> TextData -> Like -> [Table Name]

Pradeep Kumar

This is how I could do it....

Choose below events in the profiler:

  • Audit Database Object Access Event
  • Audit Fulltext
  • Audit Schema Object Access Event

Make sure to choose Text Data, under columns.

Then under column filters choose:

  • DatabaseID ---> enter specific databaseID
  • ObjectId ---> enter specific objectID (select from sysobjects for that specific table)
  • ObjectName ---> enter required tablename
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!