I'm trying to execute this script from Management Studio:
GRANT ALTER ON ROLE::[AdaptTemplate] TO [AdaptAdmin] AS [AdminSapr]
Execution fails with this message:
Msg 15151, Level 16, State 1, Line 1 Cannot find the role 'AdaptTemplate', because it does not exist or you do not have permission.
There are existing roles AdaptTemplate, AdaptAdmin and user AdminSapr in database.
User AdminSapr is a member of db_owner. My current login (which I'm trying to execute script from) is a member of sysadmin server role.
What am I doing wrong?
sysadmin)? – dezso Dec 7 '12 at 10:08AdminSaprhasn't sufficient rights to grant alter role. – Dennis Dec 7 '12 at 10:26GRANT ALTER ON ROLE::[AdaptTemplate] TO [AdaptAdmin](so, instead ofAdminSaprI'm using security context of my current login), then it being executed successfully. – Dennis Dec 7 '12 at 12:50