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
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'.