How to give permission to a user in a read only database ?

  • hi all,

    i have a question can we give a user permission read permission on a read only database.

  • Please ignore

  • Create the login on primary db first. And then, give it the permissions you want. After that, get the SID of the login by using this code:

    select sid from sys.syslogins

    where name = 'login_name'

    And finally, create the login on read-only db with the same SID of the login.

    sp_addlogin 'login_name', @passwd='mellon',

    @sid = the_sid, @defdb='MASTER'

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

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