Maintenance jobs on a read-only database

  • Can I run any maintenance jobs on a read-only database?

    Thanks.

  • Backups and integrity checks, not index rebuilds or stats updates.

    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
  • Thanks Gail. Is it necessary to run integrity checks on the databases which are marked read-only? I may be wrong but since the data won't change, I'm assuming DBCC CheckDB isn't necessary.

  • Sure it is.

    Corruption is typically an IO subsystem problem. A misbehaving IO subsystem isn't going to check and see if the DB is flagged as read-only before mangling it.

    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
  • That answers my question. Thanks Gail.

  • Forgot to ask one last question:

    Is it necessary to run any kind of maintenance jobs on static databases? These static databases will not be marked read-only.

  • Same thing, backup once after it becomes static, checkDB still necessary.

    If it's static, make it read-only.

    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

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

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