Re: Windows Group Access to SQL Scheduled Tasks - SQL 2000



Thanks Sue for leading me in that direction. (and for reading my lengthy
explanation)

I experimented with the TargetServersRole in msdb, and indeed found that
adding my Windows group as a member allowed full enumeration of the SQL jobs.
But I also found degradated functionality since it appears that this role by
default "denies" access on several key procs. While not recommended, I went
and cleared the the "deny" parmissions on these objects, and now I get the
complete functionality I was looking for. This membership plus exec access
on several procs allows the target users full access (read and update) to all
jobs. In fact, when a target user changes an attribute in a job, the owner
is implicitly changed to this user, while the actual owner field in the job
remains "greyed out".

So it looks like I've found a workable solution. Thanks again!
--
Thanks very much,
SteveT


"Sue Hoegemeier" wrote:

Basically, there isn't any documented, supported approach to
this. As you found, they need to own the jobs or be
sysadmins. Managing jobs and seeing jobs are probably two
different things. To just view jobs, the undocumented
approach would be to add the users (or group) to the
TargetServer role in msdb. They can't do all that much as
members of this role but that's probably as close as you are
going to get without granting sysadmin.

-Sue

On Wed, 18 Oct 2006 08:53:02 -0700, SteveT
<SteveT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi,

Like many others, as a Production DBA I'm trying to migrate towards Windows
groups for as much SQL access as practical. This is giving me some headaches
when attempting to setup a Windows security group for our Logical/Design DBAs.

I've created a group that has just a couple server-wide roles assigned (only
Process Admin and Bulk Insert Admin), and will default to the following
database roles in all user DBs: db_datareader, db_datawriter, and
db_ddladmin. Since these users have been accustomed to being System Admins,
we are attempting to phase this in by allowing the above settings on
Production servers.

Since these users will require to continue (for now) managing some SQL Agent
jobs, I don't have any problem letting them see ALL jobs and working with
these jobs. Herein lies the problem, since you can not change pre-existing,
or for that matter, any new jobs to be owned by a group login, I can not find
a way to enable ALL jobs to be seen by these users unless they are elevated
to a System Admin server role. (now against our rules)

I've tried to provide extensive access to msdb objects and even tried
setting them as DBO on msdb, but this does nothing. The only scenario that
appears workable is to provide an exact copy of every job, each owned by each
specific user in the group! This is not ideal, nor is getting in the
business of changing job owners on demand whenever a different user needs to
view a particular job.

Has anyone found, or know of a way to allow ALL jobs to display when a user
clicks 'Jobs' under the SQL Agent tree in Enterprise Manager, when this user
is NOT a System Administrator? Or any way to allow 'Group' access to a set
of jobs?


.



Relevant Pages

  • Re: Is Wal-Mart DCs Salvation? (was Re: Maybe a return to the Multiverse...)
    ... I don't agree consumers have a *right* ... especially at the expense of people's jobs. ... few cents more for something there because I know Target is a better ... Marvel sort of did this a few years ago. ...
    (rec.arts.comics.dc.universe)
  • Re: zip file contention
    ... > I got some contention on a zip file, caused when a bunch of jobs were ... that to mumble.zip (if the target spec. ... Obviously, then, only one zip process will be successful at creating the ... I believe the best solution may be the single-threaded batch queue ...
    (comp.os.vms)
  • Do-Nothomg Democrats Force Target to cut jobs
    ... NEW YORK - Discount retailer Target Corp said on ... Tuesday that it will cut roughly 600 jobs at its headquarters, ... employs 500 workers as it contends with weaker-than-expected sales. ... The retailer said it will close its Little Rock, ...
    (alt.politics)
  • GNU make dependancy question
    ... These will be distributed VIA LSF. ... There will be 1300+ jobs distributed via ... about to begin a charging scheme that charges per cpu minute. ... How can I get my target to depend on the value inside .status file? ...
    (comp.unix.programmer)
  • Re: msdb recreate cause replication problems
    ... The goal was to het replication ... never mind the jobs or the previous state. ... associated msdb tables and jobs are also recreated. ... Dropping and recreating the publications and subscriptions should do that. ...
    (microsoft.public.sqlserver.replication)