Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Tables with No Index

Author  Topic 

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2005-10-04 : 05:29:19
Hi All,

Is there any script or command to find out tables in a database without index(s).

Thanks in advance
Sachin Samuel

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-04 : 05:37:24
Try this

select table_Name from INFORMATION_SCHEMA.TABLES T
Where not Exists(select * from INFORMATION_SCHEMA.TABLE_CONSTRAINTS
where table_Name=T.table_Name)


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -