Note: Frequently asked Question in Interview.
Index Rebuild: In this Indexing process first drops
the existing Index and recreates the index.
Example:
USE AdventureWorks;GOALTER INDEX ALL ON Production.Product
REBUILDGOIndex Reorganize : In this Indexing process Index physically reorganizes the leaf nodes.
Example:
USE AdventureWorks;GOALTER INDEX ALL ON Production.Product
REORGANIZEGONow Question is that when we can use Rebuild Index and
Reorganize Index.So that when the fragmentation is greater than 40% than we
can use the Rebuild option but it's take the more memory resources of Operating
System and also Database.When the fragmentation is between 10% To 40% then we can we
the Reorganize indexing.
No comments:
Post a Comment
Thank You !!!!