Updatestastics & Rebuild index

  • Hi Every body,

    right know am working with performace tunning

    little bit confuge to working this one could you please clarify really appreciate that persons

    1st update statics OR rebulid the index could give suggestion

    & what is differece between both

  • Update statistics just updates the column stats on the table.

    Rebuild index rebuild the specified index, removes fragmentation and then updates the stats for that index.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Rebuilding an index does a fullscan update of the statistics. Unless you specify the WITH FULLSCAN option of UPDATE STATISTICS, you get a sampled update which may or may not be accurate, depending on the layout of the data in the column statistics.

    Jonathan Kehayias | Principal Consultant | MCM: SQL Server 2008
    My Blog | Twitter | MVP Profile
    Training | Consulting | Become a SQLskills Insider
    Troubleshooting SQL Server: A Guide for Accidental DBAs[/url]

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

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