January 1, 2013 at 11:58 pm
I am a newbie.I am learning SQL Server through the articles present on internet. I am a bit confused regarding Rebuilding the indexes.
On technet i came across a article were the author mention that we can rebuild the indexes by using Rebuild Command.
Then on the other article i came across the article which tells me that we have to execute a very long query to rebuild the indexes.
When we can rebuild the indexes using simple command as rebuild why do we need such long queries to do the task of rebuilding.
And another question is how to find out the index fragmentation.
January 2, 2013 at 2:11 am
REbuilding indexes is done with ALTER INDEX ... REBUILD. That's all that's needed.
Was the long query not to identify which indexes needed rebuilding perhaps?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply