How To Profile For One Table In SQL Server?
How can I add a filter which can trace sql statements for a particular table name?
Solution 1:
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]
Solution 2:
This is how I could do it....
Choose below events in the profiler:
Audit Database Object Access EventAudit FulltextAudit Schema Object Access Event
Make sure to choose Text Data, under columns.
Then under column filters choose:
DatabaseID---> enter specific databaseIDObjectId---> enter specific objectID (select fromsysobjectsfor that specific table)ObjectName---> enter required tablename
Post a Comment for "How To Profile For One Table In SQL Server?"