Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 GRANT EXECUTE ON [GRANT EXECUTE]

Author  Topic 

Artoo
Starting Member

16 Posts

Posted - 2008-05-06 : 11:22:12
Hi,

I want one of my database users to be able to grant execute to procedures, but I don't want the user to have sys admin rights.

Is this possible. Kind of a statement like the following:

GRANT EXECUTE ON [GRANT EXECUTE] TO myuser

Thanks in advance

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-06 : 11:29:11
Yes ,give execute permission for SP.
Go to Top of Page

Artoo
Starting Member

16 Posts

Posted - 2008-05-06 : 11:38:14
How do you mean?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-06 : 11:54:49
Check out db_executor(for all SP) in Books online.
Go to Top of Page

Artoo
Starting Member

16 Posts

Posted - 2008-05-06 : 12:20:02
Thank you
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-06 : 22:19:17
>> Check out db_executor(for all SP) in Books online.

Which books online do you have?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-06 : 22:53:17
My bad, I mean google.
Go to Top of Page

Artoo
Starting Member

16 Posts

Posted - 2008-05-07 : 03:14:32
I checked out db_executor and this is not what I am after. I do not want to give execute to all my procs. What I want is for one user to be able to [GRANT EXECUTE] to another user. Lets say I have a user called JuniorAdmin. And say I have another user called JuniorDataReader. Now one of my developers has created a new proc. JuniorAdmin is going to install the proc, because he has db_ddladmin rights. However he cannot [GRANT EXECUTE] too JuniorDataReader. What rights do I need to give to JuniorAdmin to be able to [GRANT EXECUTE] to [JuniorDataReader]?
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-05-07 : 05:48:19
I believe db_securityadmin will allow him to do that

--
Gail Shaw
Go to Top of Page

ServerTeam
Yak Posting Veteran

83 Posts

Posted - 2008-05-07 : 10:50:43
Grant execute to users Schema by adding user..

Thanks,
ServerTeam
Go to Top of Page
   

- Advertisement -