Re: Privilege in scheduling packages through sql agent jobs

From: Maria Garcia (MariaGarcia_at_discussions.microsoft.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 07:57:03 -0800

Thank you very much you have been very helpful!!!

"Sue Hoegemeier" wrote:

> It means that if the programmer is not a sysadmin, the job
> won't run as the dtsrun command is an CmdExec job step. By
> default, the SQL Agent properties are set so that only
> sysadmins can execute CmdExec and ActiveScripting job steps.
> The package can be scheduled by a non-sysadmin but it won't
> run unless the owner of the job is changed to a sysadmin.
> The other alternative is to allow non-sysadmins to execute
> CmdExec and ActiveScripting jobs and create a proxy account
> which will be used as the security context of jobs not owned
> by sysadmins. However, there are certainly security
> implications with this. There are also other potential
> issues with allowing non-sysadmins to schedule jobs - they
> can't view all jobs and consequently can't take job load,
> server load into consideration when scheduling jobs.
> A sysadmin should probably be reviewing jobs being added and
> this person can change the ownership of the job to a
> sysadmin.
> You can find additional information on scheduling packages,
> job owners, security context, etc. in the following article:
> How to Run a DTS Package as a Scheduled Job
> http://www.support.microsoft.com/?id=269074
>
> -Sue
>
> On Mon, 28 Mar 2005 09:21:08 -0800, Maria Garcia
> <MariaGarcia@discussions.microsoft.com> wrote:
>
> >A programmer can schedule jobs through sql agent and the job step that is
> >executed in the job ran cannot be ran in a package that is scheduled.When the
> >programmer runs the package interactively, it runs fine. When the programmer
> >attempts to schedule a package as sql agent job, the job fails. I have admin
> >privileges to sql server. Therefore, I scheduled the job for the package and
> >had the job run under the programmers account and obtained the following
> >error:
> >Non-sysadmins have been denied permission to run CMDExec job step.
> >Does this mean that the programmer needs to have the system administrator
> >role in order to schedule a package as a job.
>
>



Relevant Pages

  • Privilege in scheduling packages through sql agent jobs
    ... A programmer can schedule jobs through sql agent and the job step that is ... programmer runs the package interactively, ...
    (microsoft.public.sqlserver.security)
  • Re: Privilege in scheduling packages through sql agent jobs
    ... It means that if the programmer is not a sysadmin, ... How to Run a DTS Package as a Scheduled Job ... >attempts to schedule a package as sql agent job, ...
    (microsoft.public.sqlserver.security)
  • Re: DTS schedule problem
    ... since I infer from your original post that you are on a SQL Server 2000 ... Who owns the scheduled SQL Agent job? ... the package is under the system account, which was only a SQL account. ... I tried to schedule a DTS package. ...
    (microsoft.public.sqlserver.dts)
  • Re: Unable to Process Cube on 64bit Server with DTS package
    ... Let's see if this is a SQL Agent issues or a DSO issue. ... Can you write a package which executes a TSQL task (using integrated ... >> BI SystemsTeam ... When we try to schedule the DTS package, ...
    (microsoft.public.sqlserver.olap)
  • SSIS Scheduling Failure - AcquireConnection Error
    ... package into SSIS services in Management Studio and ran the job manually. ... I got the dreaded 'AcquireConnection' error when I tried to schedule ... while logged onto the SQL Server 2005 database server itself. ... the 'SQL Agent Service Account'. ...
    (microsoft.public.sqlserver.dts)