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 > comp.db.ms-sqlserver > indexes
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
indexes

Réponse
 
LinkBack Outils de la discussion
Vieux 13/09/2007, 21h46   #1
DaveP
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut indexes

where can i find a example on how to
build a script to reindex all my tables
Tks
DaveP


  Réponse avec citation
Vieux 13/09/2007, 23h51   #2
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: indexes

DaveP (dvs_bis@sbcglobal.net) writes:

> where can i find a example on how to
> build a script to reindex all my tables


http://www.google.se/search?hl=sv&q=...S%C3%B6k&meta=

You could also look in Books Online for the definition of sysindexes and sysobjects if you are on SQL 2000 or sys.objects and sys.indexes if you
are on SQL 2005.

One thing to be careful with is that if fragmentation is below 30%, there is
not so much to gain with reindexing, so adding some intelligence to handle
this may be worth it. I don't have any example at hand, but the hits on
Google may give you something.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Vieux 14/09/2007, 00h06   #3
DaveP
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: indexes

thank you much erland
"Erland Sommarskog" <esquel@sommarskog.se> wrote in message
news:Xns99AAF398D854AYazorman@127.0.0.1...
> DaveP (dvs_bis@sbcglobal.net) writes:
>
>> where can i find a example on how to
>> build a script to reindex all my tables

>
> http://www.google.se/search?hl=sv&q=...S%C3%B6k&meta=
>
> You could also look in Books Online for the definition of sysindexes and
> sysobjects if you are on SQL 2000 or sys.objects and sys.indexes if you
> are on SQL 2005.
>
> One thing to be careful with is that if fragmentation is below 30%, there
> is
> not so much to gain with reindexing, so adding some intelligence to handle
> this may be worth it. I don't have any example at hand, but the hits on
> Google may give you something.
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pro...ads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinf...ons/books.mspx



  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 01h55.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08692 seconds with 11 queries