Database keeps getting analysed.

  • I noticed in the error log that one of the DB's keeps getting analyzed over and over. It doesn't find any errors but keeps happening again and again. It keeps running checkdb.

    What would cause this to happen?

    Thanks

    Quinn

  • over what time period and how many times. just out of curiosity do you have auto close enabled on this database

    --------------------------------------------------------------------------------------
    [highlight]Recommended Articles on How to help us help you and[/highlight]
    [highlight]solve commonly asked questions[/highlight]

    Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden[/url]
    Managing Transaction Logs by Gail Shaw[/url]
    How to post Performance problems by Gail Shaw[/url]
    Help, my database is corrupt. Now what? by Gail Shaw[/url]

  • Auto close is set to true. It varies from a couple minutes to over a half hour.

    Thanks

    Quinn

  • The auto-close is the cause. Why is it enabled?

    When autoclose is true, SQL will shut the database down as soon as the last user disconnects. Next time someone wants the DB, SQL reopens it and does restart-recovery. That's what you're seeing in the logs, the analysis phase of the restart-recovery.

    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
  • I am not sure why auto close is set to true. The DB was a restore trial from a sql server express database. Must have gotten set to that on the restore. I will set it to false and see what happens.

    Thanks much.

    Quinn

  • Auto close is true by default on SQL express.

    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
  • Gail

    No more error messages.

    That is interesting about auto close being set to true in express. I will have to keep that in the back of my cranium.

    Thanks

    Quinn

Viewing 7 posts - 1 through 6 (of 6 total)

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