Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return tables that don't have indexes

Status
Not open for further replies.

crystalhelp

Programmer
May 13, 2002
56
CA
I want to return all tables that don't have an index on a particular field. Can I do that? If so, how? Thanks!
 
This seems to work...
select name
from sysobjects
where type = 'u' and
id not in (select id from sysindexes where indid <> 0)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top