Disable database access but still allow Backups of user databases

  • We have a Active/pasive cluster on windows 2k3 running SQL 2000. We need to disable user access to the user databases so that we can do a full backup of the database. Then we are restoring these databases to a new set of hardware that we previously restore an older back of the user databases to for testing the setup.

    Any suggestions as to the best way to do this is greatly appreciated.

  • Why do you need to prevent users accessing the DB to do a backup?

    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
  • Good question Gail. I'd guess they don't want any changes made before the cutover to the new hardware?

  • In that case, set the database to restricted users before starting the backup. That means that only members of db_owner, db_creator and sysadmin may access the DB.

    If that's not enough, make the DB single user. Just be sure that you get the sole connection for the backup.

    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
  • Thank you for your help and the quick replies.

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

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