Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server Role to execute SQL Server Agent Jobs in SQL SERVER 2008

The users from other departments ask me to grant them to execute Schedule Jobs / SSIS in SQL Server Agent. At present, they cannot see SQL Server Agent tree in their ManagmentStudio. I think, it's because they don't have the rights to execute them.

So, I would like to know which server role should I give to them. I only want to give them minimum privileges. When I check the existing roles in my server, I could only see the following server roles

  1. bulkadmin
  2. dbcreator
  3. diskadmin
  4. processadmin
  5. public
  6. securityadmin
  7. serveradmin
  8. setupadmin
  9. sysadmin

Please advise me.

like image 778
TTCG Avatar asked Jun 02 '11 09:06

TTCG


People also ask

What permissions are needed to run a SQL Agent job?

In addition, there are only two ways that someone can have permission to execute a SQL Agent job. You must either own the job, or be a member of the role SQLAgentOperatorRole (MSDB).

What user runs SQL Server Agent jobs?

If the owner is not a sysadmin, then the job runs under the owner's account. If the owner is sysadmin, then it runs under the SQL Server Agent service account.

How do I give access to SQL Agent jobs?

Using SQL Server Management StudioIn Object Explorer, expand a server. Expand Security, and then expand Logins. Right-click the login you wish to add to a SQL Server Agent fixed database role, and select Properties. On the User Mapping page of the Login Properties dialog box, select the row containing msdb.

What is the role of SQL Server Agent?

SQL Server Agent is a Microsoft Windows service that runs scheduled administrative tasks that are called jobs. You can use SQL Server Agent to run T-SQL jobs to rebuild indexes, run corruption checks, and aggregate data in a SQL Server DB instance.


1 Answers

It isn't a server role.

It is one of the "SQL Server Agent Fixed Database Roles" in msdb

See "How to: Configure a User to Create and Manage SQL Server Agent Jobs (SQL Server Management Studio)" on MSDN

like image 133
gbn Avatar answered Sep 23 '22 09:09

gbn