solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Tip Categories SQL Server Tutorials SQL Server Webcasts SQL Server Whitepapers SQL Server Tools SQL Server Questions and Answers MSSQLTips Authors About MSSQLTips SQL Server User Groups MSSLQTips Giveaways MSSQLTips Advertising Options

MSSQLTips Facebook Page MSSQLTips LinkedIn Page MSSQLTips RSS Feed MSSQLTips Twitter Page MSSQLTips Google+ Page





SQL Server Agent Proxies

By: | Read Comments | Print

Jeremy is the CTO @ Edgewood Solutions, co-founder of MSSQLTips.com and SQL Server MVP since 2009.



Related Tips: More

Problem
With so many security changes in SQL Server 2005, how did the security changes affect SQL Server Agent?  I have heard about SQL Server Agent Proxies, but I am not too familiar with them.  How do I set them up?  What dependencies do they have?  What is the security benefit?

Solution
In SQL Server 2000, a single configuration was available for the SQL Server Agent Proxy account.  With SQL Server 2005, now 11 different proxies are available (see #1 below) for each of the SQL Server Agent subsystems.  This offers a great deal of flexibility and greater security for each of these subsystems for logins and roles that do not have administrative rights to SQL Server, but need to manage SQL Server Jobs.

In order to setup the SQL Server Agent Proxy, it depends on an existing credential at the SQL Server level that maps to a Windows domain login in SQL Server.  By default SQL Server does not ship with any predefined credentials, so to set one up in Management Studio for the purposes of SQL Server Agent Proxies, navigate to the root folder| Security folder | Credentials folder | right click on the Credentials folder | select the New Credential option and then enter the name, identity (Windows domain login in SQL Server) and password.

Once the credential is setup, then the SQL Server Agent Proxy must be setup.  This can be achieved by the following steps:

ID Description Screen Shot
1 In Management Studio, navigate to the Proxies folder and right click to select the New Proxy option.

2 General Tab - Specify the following items:
  • Proxy name - ProxyCmdExec
  • Credential name
  • Description
  • Subsystem
    • Selecting the appropriate subsystem will be important because this proxy name is only available for the selected subsystem.
3 Principals Tab - From the drop down list, select the Principal type (SQL Login, MSDB role, Server role) and the associated login or role for the Proxy.

4 Principal Tab - This will reflect the selections from step 3.
5 References Tab - Initially, this tab will not have any data until the Proxy account is specified for specific Job Steps.  Once the proxy account is used in 1 or more Job Steps, this interface can become very handy to see where the Proxy account is used across all Job Steps on a single SQL Server instance.
6 Job Step - To specify a Proxy account for a Job Step, simply change the 'Run as' parameter to the new Proxy account i.e. ProxyCmdExec as opposed to the 'SQL  Agent Service Account' default value.

Next Steps



Related Tips: More | Become a paid author


Last Update: 3/14/2007

Share: Share 






Comments and Feedback:


Post a Comment or Question

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 

Sponsor Information
Find and fix SQL Server problems before they happen - SQL diagnostic manager now with predictive analysis!

The 10 tools in the SQL Developer Bundle cut the time spent in dull and tedious tasks. Learn more.

Need SQL Server help and not sure where to turn? Reach out to the Edgewood consultants for a Health Check.

Find and Fix SQL issues with Foglight Performance Analysis. Get a free copy.

Solving SQL Server problems for millions of DBAs and Devs since 2006. Join now.

Learn SQL Server 2012, Performance Tuning, Development, Administration, Replication and more - free webcasts


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | about
authors | contribute | feedback | giveaways | user groups
Some names and products listed are the registered trademarks of their respective owners.


Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com