Solved

rights to execute single sql server2008  job

Posted on 2011-02-18
5
794 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 40

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 40

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 40

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 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