This should cover what you are looking for. that is, tables that are heaps (without a clustered index) and have no nonclustered indexes. He is using a new system. which were used in 2005/2008.
In addition, you probably want to find tables that have a clustered index but do not have nonclustered indexes (this is the second part of the instruction, which I left without comment.
SELECT schemaname = OBJECT_SCHEMA_NAME(o.object_id) ,tablename = o.NAME FROM sys.objects o INNER JOIN sys.indexes i ON i.OBJECT_ID = o.OBJECT_ID
Nick kavadias
source share