Proxy accounts and principles

  • I've set up a job which will use a proxy account.

    On the first run of the job I received and error saying the the job owner is not permitted to use the proxy. So under the proxy properties > Principles I added my SQL Login account DOMAIN\Firstname.Surname. and clicked ok.

    Tried the job which failed with the same error?

    So checked the Proxy account Principles again only to find it had removed my domain account from the principles list?????

    I then added sysadmin role to the Proxy Account Principles list (which my account is assigned to) and everything worked fine. I also tried and SQL server login which was fine.

    So why does it remove my domain account from the Proxy Account Principles list? (have I missed something??)

    - very confused!

    _____________________________________________________________________________MCITP: Business Intelligence Developer (2005)

  • I don't use proxies, so I'm just guessing that your problem is the underlined one...

    This is what I found in BOL.

    Books Online


    SQL Server Agent proxies use credentials to store information about Windows user accounts. The user specified in the credential must have "Log on as a batch job" permission on the computer on which SQL Server is running.

    SQL Server Agent checks subsystem access for a proxy and gives access to the proxy each time the job step runs. If the proxy no longer has access to the subsystem, the job step fails. Otherwise, SQL Server Agent impersonates the user that is specified in the proxy and runs the job step.

    Creation of a proxy does not change the permissions for the user that is specified in the credential for the proxy. For example, you can create a proxy for a user that does not have permission to connect to an instance of SQL Server. In this case, job steps that use that proxy are unable to connect to SQL Server.

    A user must have access to a proxy to use the proxy in a job step. Access can be granted to three types of security principals:

    SQL Server logins

    Server roles

    Roles within the msdb database

    If the login for the user has access to the proxy, or the user belongs to any role with access to the proxy, the user can use the proxy in a job step.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

Viewing 2 posts - 1 through 1 (of 1 total)

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