Skip to main content

Posts

Showing posts with the label SQL Server

SQL Server - Get the list of tables without Indexes

Here is the quickest way to know the list tables in SQL Server which doesn't have Indexes. This will be very useful when we have large number of tables in our SQL Server database. SELECT DISTINCT so.object_id,                 so.NAME FROM   sys.indexes si        INNER JOIN sys.objects SO                ON SO.object_id = si.object_id WHERE  SO.type = 'U'        AND si.index_id = 0 Happy Learning !!!