28
SQL Server DB中所有索引和索引列的列表
如何获得SQL Server 2005+中所有索引和索引列的列表?我能得到的最接近的是: select s.name, t.name, i.name, c.name from sys.tables t inner join sys.schemas s on t.schema_id = s.schema_id inner join sys.indexes i on i.object_id = t.object_id inner join sys.index_columns ic on ic.object_id = t.object_id inner join sys.columns c on c.object_id = t.object_id and ic.column_id = c.column_id where i.index_id > …