Re: Package Sercurity Context

From: Darren Green (darren.green_at_reply-to-newsgroup-sqldts.com)
Date: 03/02/04


Date: Tue, 2 Mar 2004 18:21:26 +0000

In message <ebqh0YHAEHA.1548@TK2MSFTNGP12.phx.gbl>, alien2_51
<dan.billow@?.o.s.p.a.m.monacocoach.commercialversion.invalid> writes
>Under what security context does an ActiveX Script task run as if executed
>inside the DTS designer...? Where does it get the context, does it
>impersonate the user..? I realize that it's different when run as a
>scheduled job, whatever credentials the SQL Agent runs under are used... Is
>that correct..?
>
>TIA
>
>
The script and indeed the package is run under the context of the user
executing the package. DTS is client-side, so when using Enterprise
Manager for example it runs on the same machine as EM, under the user
context of logged on user.

If you schedule a package then you basically get the SQL Server Agent
service to call DTSRUN for you, so it is on the same machine as SQL
Server Agent and running under the SQL Server Agent service account. The
caveat to that is for jobs not owned by a sysadmin SQL agent then
impersonates the proxy account, assuming one has been defined.

More info about scheduled packages here-

http://support.microsoft.com/default.aspx?scid=kb;en-us;269074

-- 
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org


Relevant Pages

  • Re: Package Sercurity Context
    ... > The script and indeed the package is run under the context of the user ... > executing the package. ... > If you schedule a package then you basically get the SQL Server Agent ...
    (microsoft.public.sqlserver.dts)
  • Re: SQL 2000 - Connection Error with DTS Packages
    ... After I changed all SQL Server 'Database Connection' steps in each of my DTS ... Package" option when you right click a DTS package name in ME. ...
    (microsoft.public.sqlserver.dts)
  • Re: vb.net dataTbl can DTS read?
    ... then using ADO to read/write the data to Sql Server. ... like what DTS does with Text Files, MS Access data, etc. ... Right now I am experimenting with writing the data from ...
    (microsoft.public.sqlserver.dts)
  • Re: SQL Server DTS From Sybase
    ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. ... > DataPump is used interchangeably with the transform Data Task ergo not the> ExecuteSQL task ... >>>> I want to import data from a Sybase database via a SQL Server DTS ...
    (microsoft.public.sqlserver.dts)
  • Re: SQL Server DTS From Sybase
    ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. ... > DataPump is used interchangeably with the transform Data Task ergo not the> ExecuteSQL task ... >>>> I want to import data from a Sybase database via a SQL Server DTS ...
    (microsoft.public.sqlserver)