SQL Server: Script to find Heap Table without having an Index

In this post, I am sharing one of the script for a Database Administrator to find SQL Server Heap Tables which are not having a clustered index.

A Table without a cluster index is called as Heap Table and Data is stored in the Heap without specifying an order.

I have also published one article on, What is Heap Table?
You can visit this article here:

Sometimes, database developer forgets to apply cluster index on a particular table and after that the same table may have a lot of data which affect to query performance without having a cluster index.

Below is a script to find all Heap Table of a Database:

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

Be the First to Comment!

Notify of