dbTalk Databases Forums  

Bizare DTSRUN behavior

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Bizare DTSRUN behavior in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Block
 
Posts: n/a

Default Bizare DTSRUN behavior - 12-03-2003 , 12:49 PM






using DTSRUN to execute a package, had some truncate table statements in an
sql steps. Truncate reserved for dbo use. The user executing the package is
not the dbo nor alias, so it should fail. But in once specific recreatable
instance, is does not fail.

If I run the package from my machine, even though I am specificying the /U
and /P switches, it runs fine (it should bomb out since the user specified
is not dbo), but is apparently using an implied trusted connection for some
pieces of the package. If I run it from a machine where the logged on user
is not in the admin group the behavior is as excpeted.



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Bizare DTSRUN behavior - 12-03-2003 , 03:11 PM






In article <#S88m4cuDHA.2168 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, Jeff Block
<jblock (AT) REMOVETHECAPSANDINVALIDfirstlook (DOT) biz.invalid> writes
Quote:
using DTSRUN to execute a package, had some truncate table statements in an
sql steps. Truncate reserved for dbo use. The user executing the package is
not the dbo nor alias, so it should fail. But in once specific recreatable
instance, is does not fail.

If I run the package from my machine, even though I am specificying the /U
and /P switches, it runs fine (it should bomb out since the user specified
is not dbo), but is apparently using an implied trusted connection for some
pieces of the package. If I run it from a machine where the logged on user
is not in the admin group the behavior is as excpeted.


When you use the /U and /P DTSRUN switches this is specifying the
credentials used to connect to SQL Server to load the package only.
This does not effect the connections or tasks inside of the package, so
if the connection uses integrated security the connection mad during the
package execution is still made using the credentials of the logged on
user running the DTSRUN program.

Does this explain the behaviour?

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.