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

后端 未结 5 429
执笔经年
执笔经年 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:35

    A bit of a daft one, but make sure your UserName is spelt correctly in the GRANT statement. I spent half an hour trying to figure out what the cause of this error was and it was simply a typo on my part!

提交回复
热议问题