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
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!
UserName
GRANT