dbTalk Databases Forums  

Passing Global Variable

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


Discuss Passing Global Variable in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kvangor27 (AT) yahoo (DOT) com
 
Posts: n/a

Default Passing Global Variable - 05-18-2006 , 09:02 AM






Hi,

I have a DTS package setup to load a forecast from an Excel file. We
have 17 different countries to load, so instead of having a DTS package
for each country I'd like to use the same one for all. I setup a
package to call the forecast load package, and I'm passing a global
variable with the file path of the Excel file. I'm using the Dynamic
Properties task to change the Excel file connection to whatever country
is being loaded in the forecast load package.

I'm getting a "execution canceled by user" error when executing the
Execute package task. I have defined the global variable to be passed
with the Inner Package Global Variables tab, but the child package does
not seem to be picking up the variable. Am I missing something????

Also, if I set the Global Variable within the child package and just
execute the package directly it works fine.

Thanks in advance for any assistance!

Kevin


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Passing Global Variable - 05-18-2006 , 06:18 PM






Hello kvangor27 (AT) yahoo (DOT) com,

try setting everything to execute on the main package thread.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi,

I have a DTS package setup to load a forecast from an Excel file. We
have 17 different countries to load, so instead of having a DTS
package for each country I'd like to use the same one for all. I
setup a package to call the forecast load package, and I'm passing a
global variable with the file path of the Excel file. I'm using the
Dynamic Properties task to change the Excel file connection to
whatever country is being loaded in the forecast load package.

I'm getting a "execution canceled by user" error when executing the
Execute package task. I have defined the global variable to be passed
with the Inner Package Global Variables tab, but the child package
does not seem to be picking up the variable. Am I missing
something????

Also, if I set the Global Variable within the child package and just
execute the package directly it works fine.

Thanks in advance for any assistance!

Kevin




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 - 2013, Jelsoft Enterprises Ltd.