I'm seeking clarification. I've seen heap tables defined as tables with no CLUSTERED index, but can have NON-clustered indexes on them. However, it does seem that SQL Server makes a distinction between these definitions. As in the sysindexes table, indid 0, 1, 2 are for no-indexes, clustered index, and tables with a regular index.
Also my other question is, I seem to recall running Sajal Dam's script (from his SQL Server Performance Tuning book) for re-indexing indexes on tables that have a fragmentation of a certain threshold. However, I notice that this script NEVER worked on tables unless there was a clustered index. Anyways, does anyone know what I'm talking about? I think it was running DBCC INDEXDEFRAG, but it just completely skipped the "heap" tables, that that I mean tables with out a clustered index, but may have had a regular non-clustered index.
Thanks!
Also my other question is, I seem to recall running Sajal Dam's script (from his SQL Server Performance Tuning book) for re-indexing indexes on tables that have a fragmentation of a certain threshold. However, I notice that this script NEVER worked on tables unless there was a clustered index. Anyways, does anyone know what I'm talking about? I think it was running DBCC INDEXDEFRAG, but it just completely skipped the "heap" tables, that that I mean tables with out a clustered index, but may have had a regular non-clustered index.
Thanks!