Locking users out of a database

  • I need to perform an upgrade and I need to keep our users from accessing the database at that time.

    If I right click on my database->click properties->then click options. I see information under State.

    Database(Read-only) false

    Restrict access - Multi-user

    Is this where I restrict users? Do I change false to true or change multi-user to restrict_user?

    Thanks for your assistance.

  • I tried it out on my test database. I change multiuser to restricted_user and it worked.

  • u can also use

    Alter database [database name] set single_user

    Alter database [database name] set multi_user

    Regards,
    [font="Verdana"]Sqlfrenzy[/font]

  • Thanks.

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

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