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)
 Automatic Re-indexing

Author  Topic 

Peace2007
Posting Yak Master

239 Posts

Posted - 2009-01-24 : 07:14:02
Is it possible to perform re-indexing automatically?
or does SQLserver do it by default?

the problem is that our server performance is extremely low for around 15 minutes then it turns back to the normal state. I'd like to know if it is due to reindexing

Thanks

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-01-24 : 11:13:45
SQL won't rebuild indexes (or create indexes, or drop indexes) unless you tell it to do so.

Check what jobs are running when the server goes slow. Especially if it's a regular occurrence.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

Peace2007
Posting Yak Master

239 Posts

Posted - 2009-01-25 : 00:47:39
Thank you Gail
Another question is can we define a job to rebuild indexes?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-25 : 00:56:01
Yes you can create a job to rebuild the indexes. I've got a 2005 script for it: http://weblogs.sqlteam.com/tarad/archive/2008/09/03/Defragmenting-Indexes-in-SQL-Server-2005.aspx

And here's how my production environments look in regards to SQL jobs: http://weblogs.sqlteam.com/tarad/archive/2008/06/30/SQL-Server-jobs-on-production-instances.aspx

Here are all of my database maintenance routines: http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx

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

Subscribe to my blog
Go to Top of Page

Peace2007
Posting Yak Master

239 Posts

Posted - 2009-01-25 : 01:02:26
Thank you very much indeed Tara :)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-25 : 01:05:29
You're welcome. A new version of my defragment stored procedure is coming out in a couple of weeks. It allows you to track historical information, which will help you determine if you need to make any design changes.

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

Subscribe to my blog
Go to Top of Page
   

- Advertisement -