indexing - Tracking indexes in SQL server -
indexing - Tracking indexes in SQL server -
i'm looking maintain track of indexes in db. maintain track of names. way know how query , insert result(indexes) in table. wondering if there other ways. how guys maintain track of indexes? thanks
you can list table/index names, , basic usage info this:
use {databasename} go select distinct object_name(sis.object_id) tablename, si.name indexname, sis.user_seeks, sis.user_scans, sis.user_lookups, sis.user_updates sys.dm_db_index_usage_stats sis inner bring together sys.indexes si on sis.object_id = si.object_id , sis.index_id = si.index_id --where sis.database_id = db_id('yourdbnamehere') --and sis.object_id = object_id('yourtablenamehere'); go
link source.
sql-server indexing tracking monitor
Comments
Post a Comment