![]() |
|
|
By: Jeremy Kadlec | Read Comments | Print Jeremy is the CTO @ Edgewood Solutions, co-founder of MSSQLTips.com and SQL Server MVP since 2009. Related Tips: More |
|
Problem
One mantra across the industry is the need to fine tune security for all infrastructure components. In SQL Server 2005, Microsoft responded with an almost overwhelming number of granular security rights which in some respects requires DBAs and Developers to think about SQL Server security in a brand new way. One key area that we are going to look at today is a few of the new security options for SQL Server Agent. SQL Server 2000 had some semi granular fixed server roles for the database engine but no roles specifically for SQL Server Agent. With SQL Server 2005 some of those same server role principals have been applied to the SQL Server Agent giving this portion of the architecture a big step forward.
Solution
SQL Server Agent now has 3 roles which reside in MSDB database offering a new set of opportunities to fine tune access to working with Jobs. Job management is certainly one area where security improvements are a much welcomed addition.
What are the differences in the SQL Server Agent roles?
| ID | Role | Description |
| 1 | SQLAgentUserRole |
|
| 2 | SQLAgentReaderRole |
|
| 3 | SQLAgentOperatorRole |
|
Source - SQL Server Agent Fixed Database Roles
What types of users should be granted these rights?
Although production DBAs will have System Administrator rights, the new SQL Server Agent Fixed Database Roles would be considerations for:
How do I grant these rights?
The rights are granted at the MSDB database level. To grant rights the follow these steps:

Are any additional resources available?
Check out these SQL Server 2005 Books Online articles:
Next Steps
| Share: | Share | Tweet |
|
![]() |
|
|
Free SQL Server Learning |
|
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 |