Categories: SQL Queries

how to find list of heap tables in the database.

Below query can be used to find heap table in sql server.

SELECT T.Name ‘HeaptableName’
FROM sys.indexes I
INNER JOIN sys.tables T
ON I.object_id = T.object_id
WHERE I.INDEX_ID = 0

admin

Share
Published by
admin
Tags: sql queries

Recent Posts

How to Flip a KPI Card in Power BI: Step-by-Step Guide

What Is the Power BI New Card Feature? The new card feature allows you to:…

1 month ago

What is slow changing dimension?

The attribute value in Dimension table are going to change slowly over time and they…

5 years ago

How to Change SQL Server Compatibility level

  Changing Database compatibility level will be required when you upgrade your database from one…

6 years ago

View Compatibility level of Database

To know what is compatibility Level check this post link. You can view the compatibility…

6 years ago

SQL Server Compatibility Level

SQL Server Compatibility level will be used to decide how SQL will use it features.…

6 years ago

View in SQL server

A view is a virtual table.  View will not store any data physically. The data…

6 years ago