Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to run a defragmentation report and rebuild

Author  Topic 

robincui
Starting Member

1 Post

Posted - 2009-11-08 : 21:29:20
Greetings.

Is there anyone who can tell me how to run a defragmentation report and then run rebuild.

I am a beginner in MS-SQL 2005 and don't know how to do that.

Help me, please.

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-09 : 10:56:47
You need to query a DMF or you could just use my custom code which does it all for you: http://weblogs.sqlteam.com/tarad/archive/2009/11/03/DefragmentingRebuilding-Indexes-in-SQL-Server-2005-and-2008Again.aspx

It is used around the world by many companies, including all of my systems where I've got SLA requirements of 99.999%. Be assured it's safe to run!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -