Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Security
»
execute permission
execute permission
Rate Topic
Display Mode
Topic Options
Author
Message
aishwaryar30
aishwaryar30
Posted Monday, October 13, 2008 5:48 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, October 14, 2008 3:31 PM
Points: 3,
Visits: 22
On a button click event a sql server agent job has to be started. the stored procedure sp_start_job starts the job. It does not work for a non-admin user. I do not want to give them execute permission for sp_start_job because they coould start any job they want to. Can I give permission to a specific job?
Post #585156
happycat59
happycat59
Posted Monday, October 13, 2008 9:26 PM
SSCrazy
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 9:55 PM
Points: 2,471,
Visits: 2,066
A user is normally allowed to start jobs that the user owns. This is the simplest option although it may not be an option if more than one non-admin needs to be allowed to start the same job.
The only other option I can think of is to
- create a table that is used to indicate whether the job needs to run
- create a new job that runs frequently and checks the above. If the job in question should be run, start it and then clear the flag in the new table.
Then update the code in your application so that instead of starting the job, it simply updates a table.
Post #585193
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.