Index Maintenance - Rebuild only clustered indexes #587
Unanswered
F-Flintstone
asked this question in
Questions & Answers
Replies: 1 comment 3 replies
-
Use [sys].[indexes] and [sys].[tables] to build a list of indexes that you can put into the @indexes parameter. You are going to need to do this prior to executing the index optimize procedure. From [sys].[tables] you are going to want to use [type_desc] = 'USER_TABLE' and from [sys].[indexes] [type_desc] = 'CLUSTERED' or 'NONCLUSTERED' Use the @databases and @indexes as shown in example (H) ( https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html ) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking for a simple method using Index Optimize procedure to rebuild only the clustered index on every table. I'm also looking for the opposite. How to rebuild all non-clustered indexes.
My issue, there is no pattern that I can use to exclude or include. Does anyone have a suggestion?
Beta Was this translation helpful? Give feedback.
All reactions