Re: Permissions on Scheduled Jobs

From: Trayce Jordan (trayce_at_jordanhome.net)
Date: 07/28/03


Date: Sun, 27 Jul 2003 21:38:18 -0500


It can be done, but you have to modify certain "shipped" items from MS.
In the MSDB, under views, you would need to modify the view: SysJobs_View
and change the where clause to whatever you believe suits you best. It
could be a database role that you grant to individuals and you give them
that permission, you could eliminate the where clause altogether, etc. etc.
etc.

CREATE VIEW sysjobs_view
AS
SELECT *
FROM msdb.dbo.sysjobs
WHERE (owner_sid = SUSER_SID())
   OR (ISNULL(IS_SRVROLEMEMBER(N'sysadmin'), 0) = 1)
   OR (ISNULL(IS_MEMBER(N'TargetServersRole'), 0) = 1)

I think you'll also have to do somehting similar for executing, but I can't
remember the stored proc at the moment.

Trayce

"Venkatesh" <vaiyar@hotmail.com> wrote in message
news:0ede01c346e2$62b5f130$a101280a@phx.gbl...
> Hi
>
> I have a few Jobs that are current owned by the SQL Agent
> account. I need to allow certain users to view and
> execute these jobs. Only the DBA can view them now
> because they are running under the SQL Agent
> Administrator account. Is there a way that I can let some
> users view and execute a Job when they are still owned by
> the SQL Agent account ?
>
> Thanks,
>
> Venkatesh



Relevant Pages

  • Permissions on Scheduled Jobs
    ... I have a few Jobs that are current owned by the SQL Agent ... Administrator account. ... users view and execute a Job when they are still owned by ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Agent Proxy Account
    ... The account that is running the sql agent service is a server administrator ... >A problem occurred while attempting to logon as the Windows user ... > There are a few jobs that developers create and they run under there ...
    (microsoft.public.sqlserver.security)
  • Re: Open Source softwares in FreeBSD for web hosting platform
    ... the source code is clean and easy to modify). ... The bad thing with syscp is that dns server is not ... > admin account, ...
    (freebsd-questions)
  • RE: permission for nero
    ... Subject: permission for nero ... You could modify the permissions on the shortcut to read-only except for ... > your shortcut that replaces ... you setup a specific account to be used as the RUNAS ...
    (Security-Basics)
  • Re: Restricting OpenFileDialog operations.
    ... operations running under the impersonated account. ... > I will be using impersonation to run the program so I can restrict the ... > open/save via the common dialogs As the program is ... If any account should be able to modify the directory ...
    (microsoft.public.dotnet.framework)

Quantcast