SELECT DISTINCT DB_NAME() AS N'db_name' , E.name AS N'schema_name' , OBJECT_NAME(a.object_id) AS N'table_name' , b.name N'index_name' , user_seeks N'seek' , user_scans N'scan' , last_user_seek , last_user_scan , rows FROM sys.dm_db_index_usage_stats…