Log table access using SQL Server Profiler

后端 未结 4 740
轮回少年
轮回少年 2020-12-19 11:08

Is there a way to use Profiler to determine whether a table is being accessed by queries?

I saw an event named Object:Opened (Indicates when an object h

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 11:17

    I'm not seeing those in SQL Server 2005.

    In my experience, I look at SQL:StmtStarting AND SP:StmtStarting - you can filter TextData on %TABLE_NAME%. This will even catch things inside SPs when you use SP:StmtStarting.

    It's not bulletproof, because it has to use the LIKE syntax, but it might get you what you are looking for.

提交回复
热议问题