Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 Administration
»
Reuilding the index.
Reuilding the index.
Rate Topic
Display Mode
Topic Options
Author
Message
Shadab Shah
Shadab Shah
Posted Tuesday, January 01, 2013 11:58 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Today @ 9:07 PM
Points: 162,
Visits: 336
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.
Post #1401672
GilaMonster
GilaMonster
Posted Wednesday, January 02, 2013 2:11 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:15 PM
Points: 37,651,
Visits: 29,903
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 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1401699
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.