Statistics in SQL 2000

  • when I ran Display Execution Plan one of my tables was in red and it said that some of the Statistics are missing.  Why does it happen? is it ok for me to Create Missing Statistics which SQL suggests.

    Please explain to me the pros and cons of managing statistics.

    thanks

     

  • Hi Minu,

    I'd do as SQL server suggests and recreate those statistics. The same has happened to me in the past

    and I don't think anything bad will happen to you (fingers crossed

     

    As I understand it SQL server maintains these statistics to assist its query analyser in making decisions regards

    query optimisation (ie rewriting my silly queries so they work nice and quick .

     

    Hope that helps,

     

    Ben.

  • True, statistics are used by SQL Server's query plan optimiser. 

    Perhaps you turned off 'auto create statistics' or 'auto update statistics' on your database. Make sure both of these are on, and SQL Server will automatically look after the necessary statistics for you!


    Julian Kuiters
    juliankuiters.id.au

  • Thanks for the reply.  I did add those statistics. 

  • its better to run the Statistics manuly once in a week

    Beacuse its harm the perfomance

Viewing 5 posts - 1 through 4 (of 4 total)

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