Sp_start_job

Dec 4, 2001

I need to give permissions for an user to start a job on the SQL server using msdb.dbo.sp_start_job stored procedure,what kind of permissions she will need on the server? Any help is appreciated.
Thanks.
Di.

View 1 Replies


ADVERTISEMENT

Sp_start_job

Jun 17, 2002

I'm using sp_start_job to run a job from a stored procedure. This is fine but I want to know the result ie. success or failure. I'm not having much luck with @output_flag. I can't get it to return anything.

View 1 Replies View Related

Sp_start_job Not In The List

Jul 13, 2007

I'm not able to find sp_start_job under system stored procedures in msdb. If I just run sp_start_job I get execute permission denied. If I run sp_helptext sp_start_job I get the below error
The object 'sp_start_job' does not exist in database 'msdb' or is invalid for this operation

I am not sure, what is missing, permission or the system procedure itself is not there?

Thanks
Karunakaran

View 10 Replies View Related

How Does Sp_start_job Works?

May 27, 2008

Hi:

I would like to use sp_start_job to execute a SSIS Package but I am not sure how it works. If there are two requests run the job two times simultaneously or sequentially?

View 4 Replies View Related

Execute Sp_start_job From Stored Procedure

Oct 27, 2006

I need to disable and move orphaned computer objects in my Active Directory. The SQL Agent has permission to do this. I have created a stored procedure for the task with intentions of executing it with sp_start_job. However, I cannot execute it in SQL 2005. How can I grant permission to this (login) to execute sp_start_job?  This is all run from a web page and NOT the Query Window.

View 1 Replies View Related

Sp_start_job Does Not Evaluate "@server_name" Parameter

Apr 30, 2001

We want to start a job remotely on another SQL7 server.

innocently we thought that should be no problem with sp_start_job.

We used the command listed below:

use msdb
go
EXEC sp_start_job @job_name='MyJobName', @server_name='blablabla'

The strange thing is, that sp_start_job ignores the @server_name at all.

Even if we enter complete nonsense for @server_name the job gets started as long it is present on the local sqlserver instance.
sp_start_job seems to search locally for the given job_name, only.
Consequently if we enter the remote server's name the job fails as the
jobname is not present on the local sqlserver.

Any ideas what's going wrong here.

Greetings from Mannheim, Germany
Ricardo

View 2 Replies View Related

Permission Problem Calling The Sp_start_job Proc

Feb 12, 2008

Code Snippet
ALTER procedure [dbo].[sp_MyProc]
AS

EXEC msdb.dbo.sp_start_job @job_name = 'MyJob'







I'm trying to write a procedure that calls a job. If I execute it (calling it from adp) as a user that is not db_owner (I guess), I get the error: The Execute permission was denied on the object sp_start_job, database 'msdb', schema 'dbo'.

How can I resolve this problem?

View 6 Replies View Related

Getting “EXECUTE Permission Denied On Object 'sp_start_job'� From Activation Procedure.

Jan 5, 2006

Hi guys, please see if you can help me with this...
 
I have an activation stored procedure that starts a SQL Agent Job which executes a SSIS package.  However when the stored procedure runs it fails with the error EXECUTE permission denied on object 'sp_start_job'. The message queue was created under the €˜sa€™ account, and I have tried setting the activation procedure to run as SELF, OWNER as well as creating a user account with sysadmin rights and running it under that account, all with the same  result.  When I run the stored procedure manually (under pretty much any of the accounts I have set up) it executes without any errors and kicks off the job it is meant to.  The error only occurs when the stored procedure is activated via the service broker message queue. 
 
I changed the stored proc to write out system_user and current_user to a table so that I could see what it was running as and as it turns out it appears to be running as the correct user (which is €˜sa€™ when set to SELF) but not inheriting the correct permissions.
 
Is this a bug, and if so is there some work-around for it?
 
 

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved