Solved

Start a SQL Job by an User

Posted on 2011-02-15
3
447 Views
Last Modified: 2012-05-11
Hi Experts.

I need your help! I have some export jobs in my SQL Server 2008.
Those jobs have to be started by an user.

As soon as the user has finished his job (entering data) the export should start by an interaction of the user.

I tried to use a batch file which was startet by the user, but since they do not have access to the SQL Server, they cant start the job.

Any ideas how i could handle this export?

Thanks!
0
Comment
Question by:StevetheBeef
3 Comments
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 34897803
You can grant them rights to execute SQL Agent Jobs:

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

However, it appears that "Execute" is a global right, and you can't give them the rights to execute just a single job. Alternatively, you could create a Stored Procudure that executes this job (using MSDB..sp_start_job) and grant them rights to execute that. For more details about doing that, check out this Microsoft article:

http://msdn.microsoft.com/en-us/library/ms186757.aspx
0
 
LVL 27

Expert Comment

by:Tolomir
ID: 35225204
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Permission issue? 10 24
Encryption of server 7 67
SQL Help - 12 42
Understanding Security Log Events 2 15
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

762 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

22 Experts available now in Live!

Get 1:1 Help Now