We are trying to grant an EXECUTE role on a stored procedure, however the following command
GRANT EXECUTE ON dbo.sp_AgentIdAprCheck TO s.AgentData.Dev
Keeps giving us the following error (it doesn’t like the first period):
Incorrect syntax near 's.AgentData.Dev'.
The user account needs to be written as we have it though. Can anyone offer any suggestions?
Did you try putting s.AgentData.Dev between square brackets ?