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 2000 Forums
 SQL Server Administration (2000)
 Grantor does not have GRANT permission.

Author  Topic 

ericgeil
Starting Member

1 Post

Posted - 2011-02-28 : 11:53:18
I am getting an unexpected error in SQL 2000, granting EXEC permission for a SP. I am logged in with Windows login which has "sa" permissions. I created the SP, then issued the following:

GRANT EXEC ON spWhatever to SomeRole

the command executes with no error. When I double click the SP in Enterprise Mgr and view the permissions, the permission shows up as expected. When I try to execute the SP as a member of SomeRole, I get the error message

Grantor does not have GRANT permission.

BUT- I also see the data. It returns the data AND the error!

I've granted permissions to literally thousands of SPs using this same account, and this same "GRANT" statement. I created the SP using the same account. What is going on here? Thanks in advance.



Eric

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2011-02-28 : 23:05:44
GRANT EXEC ON spWhatever to SomeRole

In the above statement you should have used "WITH GRANT OPTION ".

Something like:
GRANT EXEC ON spWhatever to SomeRole WITH GRANT OPTION


Read more at:
http://msdn.microsoft.com/en-us/library/ms186717(v=sql.90).aspx

Go to Top of Page
   

- Advertisement -