SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Help Re Indexing


Help Re Indexing

Author
Message
Vertigo44
Vertigo44
Old Hand
Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)

Group: General Forum Members
Points: 384 Visits: 839
Hi, I have a 28 GB SQL 2000 Database that is in need of a re index. I am currently running DBCC DBREINDEX on all tables within My_DB and was wondering if there was a way to tell when the process would complete.

Also, should I run DBCC INDEXDEFRAG after DBCC DBREINDEX completes?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)

Group: General Forum Members
Points: 89377 Visits: 45284
Vertigo44 (2/1/2013)
Also, should I run DBCC INDEXDEFRAG after DBCC DBREINDEX completes?


Not unless you like doing your index maintenance twice.

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)

Group: General Forum Members
Points: 88498 Visits: 41130
Vertigo44 (2/1/2013)
Hi, I have a 28 GB SQL 2000 Database that is in need of a re index. I am currently running DBCC DBREINDEX on all tables within My_DB and was wondering if there was a way to tell when the process would complete.

Also, should I run DBCC INDEXDEFRAG after DBCC DBREINDEX completes?


No real way to tell when it will complete. Even estimates based on previous rebuilds can be way off.

To clarify what Gail said, DBCC DBREINDEX will do everything including defragging and rebuilding statistics so there's no need to do a DBCC INDEXDEFRAG after DBCC DBREINDEX.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Vertigo44
Vertigo44
Old Hand
Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)Old Hand (384 reputation)

Group: General Forum Members
Points: 384 Visits: 839
Thank you! I was able to Reindex all the user tables that were above 30% fragmentation successfully within the maintenance window. This server is in high demand since it runs our Emergency Room application 24/7. It is very difficult for us to get a downtime window with the Physicians. That being said I have noticed a few issues...

Even after rebuilding all the indexes, each time the nightly online index reorg job kicks on, the users experience issues with the application. It's not a rebuild but a reorg. Also, the mdf files and the ldf files are located on the same drive. This drive is highly fragmented. I tried to defrag it once I finished the index rebuild but ran out of time as the users needed it. Im still trying to figure out if that could be what is causing their issues with the online reorg job kicking in.

Quick facts: SQL Server 2000, Windows Server 2003 32bit with 3.5 GB Ram. I have set SQL Server Memory Min = 1024 and Max 2.5 GB. Any ideas?
MMartin1
MMartin1
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2819 Visits: 2031
What RAID type are you using? Maybe a hardware based 0+1 is needed. This is recommended for mission critical 24/7 systems.

----------------------------------------------------
How to post forum questions to get the best help
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search