In order to assess options of implementing indexed views, I want to check the usage of DML
operations of the tables.
The database is new to me as well as the relevant business knowledge, so I just have no idea.
Is there a way to quickly collect a statistic within couple of days?
I am using Standard Edition.
Best Answer
If you just want to know number of index updates (regardless of how many rows affected, how wide the indexes are, etc.) and as long as you can be sure the service doesn't get restarted or indexes dropped/re-created in that timeframe, then you can look at
sys.dm_db_index_usage_stats
now and after a couple of days.As suggested by Kin, have a look at Nacho's FAQ. Basically:
-x
,-m
, or trace flag 2330sys.dm_db_index_operational_stats
.And also Tim Ford's series on snapshotting the DMV: