Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eugeneagafonov/5964695 to your computer and use it in GitHub Desktop.
Save eugeneagafonov/5964695 to your computer and use it in GitHub Desktop.
Find all tables without clustered index in SQL Azure in case of 'Tables without a clustered index are not supported in this version of SQL Server.' error
SELECT name
FROM sys.objects
WHERE type = 'U'
AND object_id NOT IN
(SELECT object_id FROM sys.indexes WHERE index_id = 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment