Re: user permission to run job only

From: SQL Apprentice (mssqlworld_at_yahoo.com)
Date: 01/18/05


Date: Tue, 18 Jan 2005 15:47:31 -0800

Hi Aaron,

I was able to run the job after I assign the job owner to the user.

Thanks for all your help.

"Aaron Weiker" <aaron@sqlprogrammer.org> wrote in message
news:25211632415703029407012@news.microsoft.com...
> Hello SQL,
> What is the error message that you are getting? I didn't see one in any of
> your posts?
>
> --
> Aaron Weiker
> http://aaronweiker.com/
>
> > Aaron,
> >
> > I granted my user to "sp_startjob" and all other sp and xp in my job
> > steps. I keep getting this message even though I granted permission to
> > it already. sp_verify_job_identifiers
> >
> > What do you think?
> >
> > "Aaron Weiker" <aaron@sqlprogrammer.org> wrote in message
> > news:25121632415672535262384@news.microsoft.com...
> >
> >> Hello SQL,
> >> Have you tried just granting execute permission only to this
> >> procedure for
> >> the user?
> >> The following statement will great execute to that procedure when run
> >> from the MSDB database.
> >>
> >> GRANT EXECUTE ON dbo.sp_start_job TO <<user>>
> >>
> >> --
> >> Aaron Weiker
> >> http://aaronweiker.com/
> >>> Hi,
> >>>
> >>> Are there any server roles I can give to a user to run jobs only?
> >>>
> >>> OSQL -Smyserver -U? -P? -Q"EXEC msdb..sp_start_job @job_name =
> >>> 'dailyjob'" -oC:\jobresult.txt
> >>>
> >>> I want the user to run this job nightly by starting an OSQL.
> >>> However I don't know what user permission to give for running SQL
> >>> jobs only.
> >>>
> >>> Any suggestions?
> >>>
>
>



Relevant Pages

  • Re: SQL Agent Jobs Failing
    ... Is changing the job owner to "sa" an option? ... Tibor Karaszi, SQL Server MVP ... > SQL Agent runs under a domain account with sysadmin rights ...
    (microsoft.public.sqlserver.server)
  • Re: SQL job owner and right
    ... try to assign the job owner to this group, but the window group is not ... Andrew J. Kelly SQL MVP ... and account A also has these three roles. ...
    (microsoft.public.sqlserver.security)
  • Re: How do people use SQL in Win authenticated mode only?
    ... If you do not want to use sa as the job owner, you can create another SQL ... login and make it the job owner. ... the context of the SQL proxy account so this account will need the ...
    (microsoft.public.sqlserver.server)