0
I’m trying to run a stored procedure in the bank and it’s giving this message:
Cannot Grant, Deny, or revoke Permissions to sa, dbo, Entity Owner, information_schema, sys, or yourself
How do I fix it?
If Proc already exists and I just change, I spin. I just can’t run a new.
I made that select:
SELECT * FROM fn_my_permissions(NULL, 'SERVER');
GO
And I got this:
server;;CONNECT SQL
server;;VIEW ANY DATABASE
What does that mean?
What does Proc do? Change some permission ?
– Motta
@Motta, looking at the
PROC
I have not seen anything that would alter, in any way, permissions. It exists at the end ofPROC
a Grant(Grant Execute on SP_CMO_SEL_PORTARIA_OIT1980_INATIVOS to cmo
)– pnet
This is the problem , the user who runs the sp does not have Grant to give Grant.
– Motta
@Motta, in this case, what would be the solution? I need to run proc in developing environment, because it exists only in the production environment.
– pnet
I drove without Grant and it worked, but I should have Grant, but I’ll leave that for those who come later. This is a 5-day project and I don’t have time to understand anything.
– pnet