Find tables without a clustered index

/ Published in: SQL
Save to your folder(s)

Copy this code and paste it in your HTML
  1. SELECT name
  2. FROM sys.objects
  3. WHERE TYPE = ‘U’
  4. AND object_id NOT IN
  5. (SELECT object_id FROM sys.indexes WHERE index_id = 1)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.