PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.setup > Rebuild vs. Reorganize
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

Rebuild vs. Reorganize

Réponse
 
LinkBack Outils de la discussion
Vieux 09/10/2007, 05h50   #1
Andre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Rebuild vs. Reorganize

SQL 2005

In a maintenance plan, when would I want to run Rebuild Index Task vs.
Reorganize Index Task? Do I want them both in the same plan, or separate
plans?

Thanks, Andre


  Réponse avec citation
Vieux 09/10/2007, 08h52   #2
Ekrem Önsoy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rebuild vs. Reorganize

I do not recommend you to use both of them automaticly.

Reorganize your indexes when possible. This process is performed online.

Rebuilding your indexes are performed offline.

Especially if it's a production server and being used frequently then you
may have problems if you rebuild your indexes often.

I would suggest you to see more information abour Index Rebuild and Index
Reorganize from the following link:
http://msdn2.microsoft.com/en-us/library/ms188388.aspx

You can learn about the fragmentation values of you indexes using DBCC
SHOWCONTIG or sys.dm_db_index_physical_stats which is new in SQL Server
2005.

For more information about DBCC SHOWCONTIG: (This command will be removed in
the future versions of SQL Server)
http://msdn2.microsoft.com/en-us/library/ms175008.aspx

For more information about sys.dm_db_index_physical_stats:
http://msdn2.microsoft.com/en-us/library/ms188917.aspx

--
Ekrem Önsoy



"Andre" <nospam@spam.com> wrote in message
news:%23G6TY$iCIHA.4196@TK2MSFTNGP04.phx.gbl...
> SQL 2005
>
> In a maintenance plan, when would I want to run Rebuild Index Task vs.
> Reorganize Index Task? Do I want them both in the same plan, or separate
> plans?
>
> Thanks, Andre
>


  Réponse avec citation
Vieux 09/10/2007, 16h20   #3
Andre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rebuild vs. Reorganize

Great information, thanks much.

Andre


  Réponse avec citation
Vieux 09/10/2007, 17h09   #4
Kalen Delaney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rebuild vs. Reorganize

In addition to the information provided by Ekrem, take a look at this
whitepaper:

Microsoft SQL Server 2000 Index Defragmentation Best Practices
http://www.microsoft.com/technet/pro.../ss2kidbp.mspx

Although the title refers to SQL 2000, it is relevant to 2005 as well. It
discusses how to tell when defragmentation will vs a complete
rebuilding of the indexes.
--
HTH
Kalen Delaney, SQL Server MVP
www.InsideSQLServer.com
http://sqlblog.com


"Andre" <nospam@spam.com> wrote in message
news:OgFlzfoCIHA.748@TK2MSFTNGP04.phx.gbl...
> Great information, thanks much.
>
> Andre
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h17.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09134 seconds with 12 queries