statistics _WA_

  • hi all,

    I have many questions on sql server statistics _WA_.

    When I drop these statistics , the data and index storage don't decrease --> the result of sp_spaceused command on the current database doesn't change. Why ??

    To know the amount of statistics '_WA_', I use :

    select o.name as Nom_Table, i.name as Nom_Index, i.indid, i.dpages * 8 as Volume_Ko

    from sysobjects o, sysindexes i

    where i.name like '_WA%'

    and o.id = i.id and o.type = 'U'

    order by o.name

    COMPUTE SUM(i.dpages * 8 )BY o.name

    COMPUTE SUM(i.dpages * 8 )

    that is correct ?

    What is the reasons to leave Sql Server create the statistics _WA_ when the good index are created ??

    thanks for your help

  • The statistics are used to decide which indexes to use. They help the query optimizer to make decisions.

    I'd leave them alone.

    Steve Jones

    sjones@sqlservercentral.com

    http://www.sqlservercentral.com/columnists/sjones

    The Best of SQL Server Central.com 2002 - http://www.sqlservercentral.com/bestof/

    http://www.dkranch.net

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply