Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    119

    Unanswered: Any equivalent of runstats()

    Hi,
    On DB2 there was a command called runstats() whichi made sured index tables etc were up to date. Is there an equivalent in SqlServer?

    Also, if I have a very large table that gets a reasonable amount of use, is there any sort of periodic health cleaning I should do. For example, on my PC, every now and again I defrag the disk. And equivalent for a specific SQL table?

    Thanks.

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    You could run UPDATE STATISTICS
    UPDATE STATISTICS (Transact-SQL)
    ...but use it sparingly.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  3. #3
    Join Date
    Jan 2006
    Posts
    119
    Quote Originally Posted by blindman View Post
    You could run UPDATE STATISTICS
    UPDATE STATISTICS (Transact-SQL)
    ...but use it sparingly.
    Thanks a mill! How to I determine the last time that was run?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •