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

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

    Run this:

    USE [db_where_you_need_access]
    GO
    CREATE USER [your_user] FOR LOGIN [your_user]
    

提交回复
热议问题