Solved

rights to execute single sql server2008  job

Posted on 2011-02-18
5
791 Views
Last Modified: 2012-05-11
Have a user - he doesn’t have sysadmin rights, only process admin, doing testing, needs rights to execute a single job. I didn’t want him to have access and rights to other jobs or more rights than needed. He is only a data reader for an associated user database
So, can I grant the user rights to execute a single sql server job? How can i do this
0
Comment
Question by:sqlserverdba
  • 3
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 34928248
If he's the owner then he can see it without having to be sysadmin:

How to: Give Others Ownership of a Job (SQL Server Management Studio)
http://msdn.microsoft.com/en-us/library/ms178031.aspx
0
 
LVL 1

Author Comment

by:sqlserverdba
ID: 34929197
because he doesn't have enough rights, he cannot see the sql agent and the jobs. the only rights he has is process admin at server level and data reader for a user database.
0
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 500 total points
ID: 34929606
If user cant see agent there are other ways to start a job - i.e sp_start_job
http://msdn.microsoft.com/en-us/library/ms186757.aspx

By default, members of the sysadmin fixed server role can execute this stored procedure. Other users must be granted one of the following SQL Server Agent fixed database roles in the msdb database:

SQLAgentUserRole
SQLAgentReaderRole
SQLAgentOperatorRole
0
 
LVL 1

Author Comment

by:sqlserverdba
ID: 34929838
yes, but the problem is agentreader role doesnt help starting the job

agentuser role helps to see and start the job when the person has been assigned ownership but still the
job fails with the message "Non-SysAdmins have been denied permission to run
DTS Execution job steps without a proxy account.  The step failed."


agentoperatorrole gives permissions on starting, modifying other jobs
0
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 500 total points
ID: 34929922
Sorry is hard sometimes to advice without the whole picture/details and I believe that you need to create a proxy account in that case as per documentation "Creating SQL Server Agent Proxies"

http://msdn.microsoft.com/en-us/library/ms189064.aspx

http://msdn.microsoft.com/en-us/library/ms188763.aspx
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question