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.server > Statistics not on an index
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Statistics not on an index

Réponse
 
LinkBack Outils de la discussion
Vieux 05/09/2008, 16h31   #1
Blue Sky
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Statistics not on an index

Using 64 Bit server running 64 bit SQL 2005 sp2...
I saw a comment that Statistics can exist that aren't associated with an
index. (See
http://decipherinfosys.wordpress.com...nd-statistics/ )

I have found that seems to be true, as i have 3 such examples (in a 12 Gb
database of 229 tables). Of the 3, 2 are on one table.

What purpose do statistics serve if not associated with an index?


--
The Spirit gives life; the flesh counts for nothing! (Jn 6:63)
  Réponse avec citation
Vieux 05/09/2008, 17h50   #2
Russell Fields
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Statistics not on an index

Blue Sky,

SQL Server does this when it feels that the statistics would it develop
a better query plan.

http://www.microsoft.com/technet/pro...stats.mspx#ERC
SQL Server creates single-column statistics automatically when compiling
queries. These statistics are created for columns where the optimizer would
otherwise have to estimate the approximate density or distribution.

RLF

"Blue Sky" <BlueSky@discussions.microsoft.com> wrote in message
news:F338031D-A4B7-49DE-A1A4-6D04C75D1CC9@microsoft.com...
> Using 64 Bit server running 64 bit SQL 2005 sp2...
> I saw a comment that Statistics can exist that aren't associated with an
> index. (See
> http://decipherinfosys.wordpress.com...nd-statistics/ )
>
> I have found that seems to be true, as i have 3 such examples (in a 12 Gb
> database of 229 tables). Of the 3, 2 are on one table.
>
> What purpose do statistics serve if not associated with an index?
>
>
> --
> The Spirit gives life; the flesh counts for nothing! (Jn 6:63)



  Réponse avec citation
Vieux 05/09/2008, 18h01   #3
Blue Sky
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Statistics not on an index

In my example, where it only occurs 3 times (out of perhaps 1000+ stats...)
are these 3 opportunities for tuning? Does anyone else see these and take
some particular action?
--
The Spirit gives life; the flesh counts for nothing! (Jn 6:63)


"Russell Fields" wrote:

> Blue Sky,
>
> SQL Server does this when it feels that the statistics would it develop
> a better query plan.
>
> http://www.microsoft.com/technet/pro...stats.mspx#ERC
> SQL Server creates single-column statistics automatically when compiling
> queries. These statistics are created for columns where the optimizer would
> otherwise have to estimate the approximate density or distribution.
>
> RLF
>
> "Blue Sky" <BlueSky@discussions.microsoft.com> wrote in message
> news:F338031D-A4B7-49DE-A1A4-6D04C75D1CC9@microsoft.com...
> > Using 64 Bit server running 64 bit SQL 2005 sp2...
> > I saw a comment that Statistics can exist that aren't associated with an
> > index. (See
> > http://decipherinfosys.wordpress.com...nd-statistics/ )
> >
> > I have found that seems to be true, as i have 3 such examples (in a 12 Gb
> > database of 229 tables). Of the 3, 2 are on one table.
> >
> > What purpose do statistics serve if not associated with an index?
> >
> >
> > --
> > The Spirit gives life; the flesh counts for nothing! (Jn 6:63)

>
>
>

  Réponse avec citation
Vieux 06/09/2008, 17h48   #4
Dan Guzman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Statistics not on an index

> In my example, where it only occurs 3 times (out of perhaps 1000+
> stats...)
> are these 3 opportunities for tuning? Does anyone else see these and take
> some particular action?


These might indicate tuning opportunities but maybe not. Just because
auto-created statistics exist doesn't necessarily mean that the columns
should be indexed or that indexing will improve performance (same applies to
sys.dm_db_missing_index views). Even without indexes, the stats allow the
optimizer to make more informed execution plan choices.


--
Hope this s.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

  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 07h37.


É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,09332 seconds with 12 queries