SQLAgentUserRole Anomoly

  • We have a vendor who needs to review job properties for numerous jobs. I granted their SQL login (yuck) user rights to the msdb database and then made the user the owner of these jobs. Finally I granted that user SQLAgentUserRole role rights in msdb.

    They receive the following error when clicking on the Jobs folder:

    Execute Permission Denied on Object 'xp_sqlagent_enum_jobs', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)

    The odd thing is that this is the development cluster. The prod cluster is set up identically and there is no issue there. The user rights are identical and the job ownership is identical. The instances are both patched to 9.0.3042.

    Any suggestions that may spur a resolution are appreciated!

    - Tim Ford, SQL Server MVPhttp://www.sqlcruise.comhttp://www.thesqlagentman.com http://www.linkedin.com/in/timothyford

  • Have you found an answer to this. I have the same problem with a system. I have checked against another system with the same setup and it is all right. What could be wrong and is there a specific place to look. I have spent a few hours comparing to no avail

    Thanks,

    René

  • No resolution - still open issue.

    - Tim Ford, SQL Server MVPhttp://www.sqlcruise.comhttp://www.thesqlagentman.com http://www.linkedin.com/in/timothyford

  • Try this:

    grant execute on master.dbo.xp_sqlagent_enum_jobs to {user};

    grant execute on master.dbo.xp_sqlagent_is_starting to {user};

    - Tim Ford, SQL Server MVPhttp://www.sqlcruise.comhttp://www.thesqlagentman.com http://www.linkedin.com/in/timothyford

  • Thanks a lot. It worked. Sorry I did not get back to before now. I have been very busy.

    René

  • Glad to hear it.

    - Tim Ford, SQL Server MVPhttp://www.sqlcruise.comhttp://www.thesqlagentman.com http://www.linkedin.com/in/timothyford

  • +1 & thanks.

  • Hey, Tim!

    This fixed an issue I was having. Needed a user in one database to run a sproc that kicked off a job.

    Thanks for contributing.

    Ryan Malcom

  • Thanks, that's solve my problem to 🙂

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply