How can I tell if a database table is being accessed anymore? Want something like a “SELECT trigger”
问题 I have a very large database with hundreds of tables, and after many, many product upgrades, I'm sure half of them aren't being used anymore. How can I tell if a table is is actively being selected from? I can't just use Profiler - not only do I want to watch for more than a few days, but there are thousands of stored procedures as well, and profiler won't translate the SP calls into table access calls. The only thing I can think of is to create a clustered index on the tables of interest,