dbTalk Databases Forums  

Pass Global Variables to child DTS Package

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


Discuss Pass Global Variables to child DTS Package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Kelley
 
Posts: n/a

Default Pass Global Variables to child DTS Package - 06-10-2004 , 03:36 PM






I have been trying to pass a global variable from the parent DTS package to
the child DTS package. I am using the Execute Package task to invoke the
child package. I have added the two global variables on the Inner Package
Global Variables tab and the Outer Package Global Variable tab. The child
package never receives the Global variables from the parent DTS package. Am
I missing something?

Thanks



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

Default Re: Pass Global Variables to child DTS Package - 06-11-2004 , 01:11 AM






OK

here is what I did

2 Packages Caller and Called

Caller executes the Called package.

GV in the Called package

I set the GV in the Called package in the Inner Package Global Variables
section of the ExecutePackage task of the Caller package.

Works for me.

Do you have in the child package "Explicit Global Variables" set in the
package properties?

What is being picked up in the child?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote

Quote:
I have been trying to pass a global variable from the parent DTS package
to
the child DTS package. I am using the Execute Package task to invoke the
child package. I have added the two global variables on the Inner Package
Global Variables tab and the Outer Package Global Variable tab. The child
package never receives the Global variables from the parent DTS package.
Am
I missing something?

Thanks





Reply With Quote
  #3  
Old   
Tim Kelley
 
Posts: n/a

Default Re: Pass Global Variables to child DTS Package - 06-11-2004 , 10:32 AM



Allan,
When I enter the GV in the Called package in the Inner Package Global
Variables tab, the value is automatically set to what the value is in the
called program (I have defined the GV in the package properties). When the
Called package runs, this is the value that is being picked up. I have the
GV defined in both packages with the Explicit Global Variables set to yes
(is this correct).

Thanks for your time.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
OK

here is what I did

2 Packages Caller and Called

Caller executes the Called package.

GV in the Called package

I set the GV in the Called package in the Inner Package Global Variables
section of the ExecutePackage task of the Caller package.

Works for me.

Do you have in the child package "Explicit Global Variables" set in the
package properties?

What is being picked up in the child?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote in message
news:OQIlYqyTEHA.384 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have been trying to pass a global variable from the parent DTS package
to
the child DTS package. I am using the Execute Package task to invoke the
child package. I have added the two global variables on the Inner
Package
Global Variables tab and the Outer Package Global Variable tab. The
child
package never receives the Global variables from the parent DTS package.
Am
I missing something?

Thanks







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

Default Re: Pass Global Variables to child DTS Package - 06-11-2004 , 11:43 AM



You define the GV of the child package in the child package (If Explicit GV
is set then it is case sensitive)
In the calling package (Inner Package GV tab) you should see a drop down of
the variables in the child package.
You can then enter the value you want to pass to the child value as well.

I can send you an example if you wish.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote

Quote:
Allan,
When I enter the GV in the Called package in the Inner Package Global
Variables tab, the value is automatically set to what the value is in the
called program (I have defined the GV in the package properties). When
the
Called package runs, this is the value that is being picked up. I have
the
GV defined in both packages with the Explicit Global Variables set to yes
(is this correct).

Thanks for your time.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:O3Wo3o3TEHA.2844 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
OK

here is what I did

2 Packages Caller and Called

Caller executes the Called package.

GV in the Called package

I set the GV in the Called package in the Inner Package Global Variables
section of the ExecutePackage task of the Caller package.

Works for me.

Do you have in the child package "Explicit Global Variables" set in the
package properties?

What is being picked up in the child?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote in message
news:OQIlYqyTEHA.384 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have been trying to pass a global variable from the parent DTS
package
to
the child DTS package. I am using the Execute Package task to invoke
the
child package. I have added the two global variables on the Inner
Package
Global Variables tab and the Outer Package Global Variable tab. The
child
package never receives the Global variables from the parent DTS
package.
Am
I missing something?

Thanks









Reply With Quote
  #5  
Old   
Tim Kelley
 
Posts: n/a

Default Re: Pass Global Variables to child DTS Package - 06-11-2004 , 11:49 AM



Allan,
An example would be great. In the calling package how do I set the GV
when I call the called package at runtime?

Thanks




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
You define the GV of the child package in the child package (If Explicit
GV
is set then it is case sensitive)
In the calling package (Inner Package GV tab) you should see a drop down
of
the variables in the child package.
You can then enter the value you want to pass to the child value as well.

I can send you an example if you wish.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote in message
news:evvkil8TEHA.4048 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Allan,
When I enter the GV in the Called package in the Inner Package
Global
Variables tab, the value is automatically set to what the value is in
the
called program (I have defined the GV in the package properties). When
the
Called package runs, this is the value that is being picked up. I have
the
GV defined in both packages with the Explicit Global Variables set to
yes
(is this correct).

Thanks for your time.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:O3Wo3o3TEHA.2844 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
OK

here is what I did

2 Packages Caller and Called

Caller executes the Called package.

GV in the Called package

I set the GV in the Called package in the Inner Package Global
Variables
section of the ExecutePackage task of the Caller package.

Works for me.

Do you have in the child package "Explicit Global Variables" set in
the
package properties?

What is being picked up in the child?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote in message
news:OQIlYqyTEHA.384 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have been trying to pass a global variable from the parent DTS
package
to
the child DTS package. I am using the Execute Package task to invoke
the
child package. I have added the two global variables on the Inner
Package
Global Variables tab and the Outer Package Global Variable tab. The
child
package never receives the Global variables from the parent DTS
package.
Am
I missing something?

Thanks











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

Default Re: Pass Global Variables to child DTS Package - 06-11-2004 , 12:13 PM



Throw me a mail privately as I do not want to send an attachment to the
group.

Thanks

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote

Quote:
Allan,
An example would be great. In the calling package how do I set the GV
when I call the called package at runtime?

Thanks




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:esai9J9TEHA.3944 (AT) tk2msftngp13 (DOT) phx.gbl...
You define the GV of the child package in the child package (If Explicit
GV
is set then it is case sensitive)
In the calling package (Inner Package GV tab) you should see a drop down
of
the variables in the child package.
You can then enter the value you want to pass to the child value as
well.

I can send you an example if you wish.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote in message
news:evvkil8TEHA.4048 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Allan,
When I enter the GV in the Called package in the Inner Package
Global
Variables tab, the value is automatically set to what the value is in
the
called program (I have defined the GV in the package properties).
When
the
Called package runs, this is the value that is being picked up. I
have
the
GV defined in both packages with the Explicit Global Variables set to
yes
(is this correct).

Thanks for your time.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:O3Wo3o3TEHA.2844 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
OK

here is what I did

2 Packages Caller and Called

Caller executes the Called package.

GV in the Called package

I set the GV in the Called package in the Inner Package Global
Variables
section of the ExecutePackage task of the Caller package.

Works for me.

Do you have in the child package "Explicit Global Variables" set in
the
package properties?

What is being picked up in the child?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tim Kelley" <tim.kelley (AT) iddonline (DOT) com> wrote in message
news:OQIlYqyTEHA.384 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have been trying to pass a global variable from the parent DTS
package
to
the child DTS package. I am using the Execute Package task to
invoke
the
child package. I have added the two global variables on the Inner
Package
Global Variables tab and the Outer Package Global Variable tab.
The
child
package never receives the Global variables from the parent DTS
package.
Am
I missing something?

Thanks













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.