Sqlserver
 sql >> Datenbank >  >> RDS >> Sqlserver

Wie finde ich einen deaktivierten Index auf SQL Server 2008

select
    sys.objects.name as table_name,
    sys.indexes.name as index_name
from sys.indexes
    inner join sys.objects on sys.objects.object_id = sys.indexes.object_id
where sys.indexes.is_disabled = 1
order by
    sys.objects.name,
    sys.indexes.name