Verifying Sql Indexes Status

select * from sys.indexes
where object_id = (select object_id from sys.objects where name = 'TABLENAME')
 
 
This query will list all tables without an index:
select * from sys.indexes where object_id = (select object_id from sys.objects where name = 'MYTABLE')
 
Ebook Download
View all
Learn
View all