Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

Rebuild Index Task - Specific Objects vs. All Objects - Different Indexes chosen

$
0
0

Using SQL 2008 (10.22.5500)

I have an SSIS package that includes Rebuild Index Task for my database.
when I sellect "Specific Objects", I find included the clustered index PK_MyTable as part of the script. Yet, this clustered index PK_MyTable is not part of the script when I select "All Objects". I found this out because the package used to do all objects and when I changed it to run certain tables, the index rebuild on clustered index PK_MyTable fails when attempting to do so.

Why is the index PK_MyTable scripted with option "Specific Objects" and not when "All Objects" is chosen?
Which of the the two scripts is scripting correctly?

Thanks before hand.



Paulino


Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>