The EXECUTE permission was denied on the object 'xxxxxxx', database 'zzzzzzz', schema 'dbo'

后端 未结 14 1823
梦谈多话
梦谈多话 2020-12-02 05:18

I\'m having problems executing a function.

Here\'s what I did:

  1. Create a function using SQL Server Management Studio. It was successfully created.
14条回答
  •  时光说笑
    2020-12-02 05:47

    Sounds like you need to grant the execute permission to the user (or a group that they a part of) for the stored procedure in question.

    For example, you could grant access thus:

    USE zzzzzzz;
    GRANT EXEC ON dbo.xxxxxxx TO PUBLIC
    

提交回复
热议问题