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 2000 Forums
 SQL Server Administration (2000)
 Scripts for frag analysis and reindex

Author  Topic 

Blin
Starting Member

36 Posts

Posted - 2007-04-25 : 14:26:06
I'd like to know if anyone know any good scripts to automatically analyze fragmentation and reindex for all databases in an instance?

Thank you.
Ben

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-04-25 : 14:29:51
Tara has some scripts on her blog: http://weblogs.sqlteam.com/tarad/archive/2007/04/17/60176.aspx



************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-04-25 : 14:41:19
I do have isp_DBCC_DBREINDEX, however it does not check fragmentation levels. isp_ALTER_INDEX does check fragmentation levels but it works on 2005 only.

My database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx

I can't find my bookmark of a 2000 script that does check fragmentation levels. I must've deleted it a little while ago since we barely have any 2000 database servers out there anymore. I know it was posted here and on sql-server-performance.com as well. Perhaps you can search for it.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-04-29 : 12:56:59
"I can't find my bookmark of a 2000 script that does check fragmentation levels."

I think this was the basis of what we used:

http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=444&whichpage=2

Kristen
Go to Top of Page

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2007-04-29 : 18:46:50
>>automatically analyze fragmentation

Could be extended to tie into one of Tara's scripts....

http://weblogs.sqlteam.com/davidm/archive/2007/02/14/60094.aspx

DavidM

Production is just another testing cycle
Go to Top of Page
   

- Advertisement -