select page_count , fragment_count , avg_fragmentation_in_percent , avg_fragment_size_in_pages , record_count , ghost_record_count , forwarded_record_count from sys.dm_db_index_physical_stats(DB_ID() ,OBJECT_ID('NextKeys') , NULL , NULL , 'DETAILED') where index_type_desc = 'HEAP'