I have a public user and need to exec xp_regread
. However I keep getting the error
xp_regread() returned error 5, 'Access is denied.'
even though I granted the exec permission to that user & read permission for the registry key.
USE master
GO
GRANT EXECUTE ON [sys].[xp_regread] TO [domain\user]
GO
Can anyone give me some advise?