Solved

rights to execute single sql server2008  job

Posted on 2011-02-18
5
787 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

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…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now