make database read-only?

  • How do I make database read-only, especially using 'alter database' statement?

    The closest I came (which doesn't work) is:

    ALTER DATABASE booka

    modify filegroup PRIMARY READONLY

    Thanks.

  • From Books Online, the correct syntax to make the database read-only is,

    ALTER DATABASE booka SET READ_ONLY

    The command you're trying is setting the filegroup to be read-only.

     

    --------------------
    Colt 45 - the original point and click interface

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

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