Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server 2008 permissions to run sp_start_job using SQLCMD

Status
Not open for further replies.

RRinTetons

IS-IT--Management
Jul 4, 2001
333
US
I have a cmd file that starts a job. It looks like:

Code:
SQLCMD -S MyServer -Q "USE MSDB EXEC sp_start_job @job_name = 'MyJob'"

It works fine for me, but I'm sysadmin on the MyServer. I want to give it to a user and let them use it as needed.

What is the best way to set up permissions for this? The user has no other access to this server.

-
Richard Ray
Jackson Hole Mountain Resort
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top