Executing Job

  • Hai all,

    Is there anyway to execute a job by a user  without having sysadmin privillege, if the job is owned by another user.

     


    subban

  • If you create a stored-procedure that is owned by the same owner as the job and GRANT EXEC to the sp THEN the non-owner should be able to run the job.

    You will need to research sp_start_job for more info.

    Of course this is going on the assumption that chain of ownership applies to jobs as well....



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

  • or, you can have a table to collect user's "run" request, then set up a job running to start other jobs that user has requested by lookup request status.

     

  • ...or add the user to TargetServersRole in MSDB and grant the role EXECUTE permission to sp_start_job. 

    Greg

    Greg

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply