User does not have permission to perform this action.

  • Hi all,

    I wrote like this

    use MYDB

    go

    exec sp_addrolemember 'db_owner', 'myusername'

    go

    it is showing that

    User does not have permission to perform this action.

    please give me solution.

  • It seems you do not have the permissions to add a new member to the db_owner role (which is the most priviliged role on the database level).

    Are you an administrator?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Thanks for replying Koen Verbeeck.

    Am not the admin.

    if the user is not the admin then how to resolve this issue?

    is there any other way?

  • There's maybe a reason why you cannot do this: you are not the admin.

    Granting members to the db_owner rule is making them admin on that database.

    If you want to do this, you need to ask the administrator of the server to give you the necessary permissions.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

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

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