0

In terms of SQL terminology, does HEAP stands for a table that has Non-Clustered index?

Or there is a nuance or it has completely a different meaning?

trincot
  • 317,000
  • 35
  • 244
  • 286
pencilCake
  • 51,323
  • 85
  • 226
  • 363
  • A heap table is a table that has no clustered index. Only one index can be the clustered index so if a table has more than one index, only one of them may be the clustered index. – Mikael Eriksson Apr 01 '12 at 21:20

3 Answers3

0

A heap can have either no index at all or a non-clustered index. But a clustered table can also have non-clustered indexs on top so -

does HEAP stands for a table that has Non-Clustered index?

is not a great definition as a table with a non-clustered index could be either a clustered table or a heap.

Duncan Gravill
  • 4,552
  • 7
  • 34
  • 51
0

A heap is a table without a clustered index. Simple as that!

Diego
  • 34,802
  • 21
  • 91
  • 134
0

A heap is a table without a clustered index. Heaps have one row in sys.partitions, with index_id = 0 for each partition used by the heap. By default, a heap has a single partition. When a heap has multiple partitions, each partition has a heap structure that contains the data for that specific partition.

LazyProgrammer
  • 197
  • 5
  • 17