dbTalk Databases Forums  

package fails when called from another package.

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


Discuss package fails when called from another package. in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Row
 
Posts: n/a

Default package fails when called from another package. - 08-17-2005 , 07:05 AM






Hi,

In a project I work on we provide various exports to our users via DTS
packages
that are called using a stored procedure.

Recently a new package was added that does nothing but run 27 of the other
packages
one after the other.

This works fine on test servers and for several of the companys that use our
product.
However one of our clients is getting a SQL Server access denied error on
the first
child package being executed (DTSStep_DTSExecutePackageTask_1). The strange
thing is that they can run all the child packages individual without error,
it is only
when they run the parent that contains them that it goes wrong.

All the 27 child packages use the same global variables. Therefore the
parent that
runs them all has the same global variables set-up and I have setup the
mapping
for them in the Execute Package tasks Outer Package Global Variables.

Any ideas as to how I might go about debugging this?

Regards,
Peter



Reply With Quote
  #2  
Old   
Nilesh Lakhani
 
Posts: n/a

Default Re: package fails when called from another package. - 08-17-2005 , 08:50 AM








I get the same error using a stored proc to run DTS. What I am finding
is that the servername i.e. server1\instance1 gets truncated to server1
hence all parameterized connections fail. If you execute the same
command from the command prompt passing the global variable for the
servername it works.

I call the package execute from another DTS package using execute SQL
task to run the stored procedure.

If anyone can throw light on this I would appreciate it.

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: package fails when called from another package. - 08-17-2005 , 08:51 AM



Peter,

Does this package have owner password and are you passing variables to it?
If it does and you are passing variables, are you passing the password
before calling the package?

Ilya

"Peter Row" <get.lost (AT) spammers (DOT) com> wrote

Quote:
Hi,

In a project I work on we provide various exports to our users via DTS
packages
that are called using a stored procedure.

Recently a new package was added that does nothing but run 27 of the other
packages
one after the other.

This works fine on test servers and for several of the companys that use
our
product.
However one of our clients is getting a SQL Server access denied error on
the first
child package being executed (DTSStep_DTSExecutePackageTask_1). The
strange
thing is that they can run all the child packages individual without
error,
it is only
when they run the parent that contains them that it goes wrong.

All the 27 child packages use the same global variables. Therefore the
parent that
runs them all has the same global variables set-up and I have setup the
mapping
for them in the Execute Package tasks Outer Package Global Variables.

Any ideas as to how I might go about debugging this?

Regards,
Peter





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.