Cannot find the object because it does not exist or you do not have permissions. Error in SQL Server

前端 未结 14 2079
面向向阳花
面向向阳花 2020-12-05 12:35

I have a database and have a Sql script to add some fields to a table called \"Products\" in the database.

But when i am executing this script, I am getting the foll

14条回答
  •  -上瘾入骨i
    2020-12-05 13:11

    You can right click the procedure, choose properties and see which permissions are granted to your login ID. You can then manually check off the "Execute" and alter permission for the proc.

    Or to script this it would be:

    GRANT EXECUTE ON OBJECT::dbo.[PROCNAME]
        TO [ServerInstance\user];
    
    GRANT ALTER ON OBJECT::dbo.[PROCNAME]
        TO [ServerInstance\user];
    

提交回复
热议问题