I am trying to determine what indexes are no longer used in my Database. I have had great luck using the following query:
SELECT OBJECT_NAME(S.[OBJECT_ID]) AS
I don't have access to SQL Management Studio at home, but maybe you can look at the stored procdures dependancies (i.e. this
store procedure depends on these tables and therefore may use these indexes)
This page might give you some clue, like using the INFORMATION_SCHEMA.ROUTINES
system table:
SELECT routine_name, routine_type
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '%Employee%'
You can populate this information into a temp table and then then use that to query for the indexes used, looking at the index usage stats.
Sorry that I'm not able to give you a practical example, just a theorical example...