SQL Server Knowledge Sharing Network (SqlServer-qa.net)

SELECT [Whims_and_Fancies] from [my_SQL_Server_Knowledge];

How do I find all the tables that do not have an index?


SELECT SCHEMA_NAME(schema_id) AS schema_name
    ,name AS table_name
FROM sys.tables
WHERE OBJECTPROPERTY(object_id,'IsIndexed') = 0
ORDER BY schema_name, table_name;
GO

Published Sep 05 2007, 01:15 PM by satya
Filed under: , , ,

Comments

 

Siddu said:

This is simply superb

November 19, 2007 4:38 AM

About satya

SQL Server MVP. SQL Master, Speaker & SQL Server helper. 16+ years of IT experience in which as a Sr. DBA and Technical Design Lead in sectors of Banking, Stock markets & Investment Banking, Manufacturing & consulting.
Out of professional activities : Moderator - SQL Server Performance forums & MSDN forums in addition to my homepage above. Active member of most of the SQL Server community forums.

This Blog

Syndication



© 2000 - 2007 vDerivatives Limited All Rights Reserved.