February 22, 2012 at 10:53 am
Is there a way to only give permisson to a certain user to run A sql agent job on our production server without abling to see or run other sql agent jobs?
Thank,
February 22, 2012 at 12:01 pm
As per BOL:"Members of SQLAgentUserRole have permissions on only local jobs and job schedules that they own."
Therefore: 1) add User to SqlAgentUserRole 2) make User the owner of job
February 22, 2012 at 1:54 pm
But we have 3 peoples may take turn to run the job.
And I don't want give them rights to view or run other jobs because this is a production server
February 22, 2012 at 2:00 pm
sqlfriends (2/22/2012)
But we have 3 peoples may take turn to run the job.And I don't want give them rights to view or run other jobs because this is a production server
can't you simply create a procedure which executes the job, and give the end users EXECUTE permission on the procedure itself, but nothing related to jobs?
I've done exactly that for creating databases...end users don't have permissions, but the proc creates it on their behalf.
Lowell
February 22, 2012 at 2:06 pm
just my 2ct in addition to Lowells reply which serves exactly your question.
Here's another way to avoid having to grant higher privileges ...
Have a look at help to tighten use of cmdshell or sp_start_job[/url]
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
February 22, 2012 at 2:31 pm
The job is running a SSIS package.
Is there a way excute ssis in a stored procedure?
Thanks
February 22, 2012 at 2:38 pm
Everything is possible....
If you want to be able to have execution control, use a sqlagent job.
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply