I need to find a script (or scirpts) that
a. Lists the Indexes in an SQL Server, and which table they are indexing
b. List the fragmentation level of each Index
System is using Microsoft SQL Server 2008 R2
While I have found examples via websearch I havent found anything that matches exactly these requireemnts.
For instance "SELECT * FROM sys.indexes" lists a lot of data but it does not make much sense and does not tell you which table any given index is atached to.