Cannot find the user '', because it does not exist or you do not have permission

后端 未结 5 401
执笔经年
执笔经年 2020-12-29 20:47

I am trying to add permissions to a Store procedure for a user using this query,

USE [MyDatabaseName]
GO

GRANT EXEC ON [dbo].[StoreProcedureName] TO [UserNa         


        
5条回答
  •  有刺的猬
    2020-12-29 21:36

    I just encountered the same problem.

    Make sure there is an user mapping for your login in the master table. No database role memberships are required, just tick 'Map' for the database master under 'User Mapping' in the properties for the login 'UserName'.

提交回复
热议问题