Read Only DB

  • What is the easiest approach to add a user for read -only DB in sql 2005. I know we can alter DB to read/write and can add but is there any other easy way because even after adding user the DB will be in read-only DB.

    thanks

  • If you grant access your database using windows groups instead of users, all you would need to do is add the user to the relevant group and you would not need to make any changes to the database.

    Initially, you need to add the group(s) to the server, grant it access to the database and any tables/view/sprocs and once you have done that, you shouldn't need to make the database write-able any more.

  • I tried but it says db is read-only and cannot do it. I dont think tht works, there shud be some other go.

  • is this a rare issue?

  • I too faced this issue.But we had only one database in that server.So I gave sysadmin to that login instead of mapping a user to that database.It worked for our scenario.Since its readonly DB he cant do any changes ,even with sysadmin rights.(he can drop the DB:))....

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

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