dbTalk Databases Forums  

Global Variables set up

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


Discuss Global Variables set up in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Scheiderich
 
Posts: n/a

Default Global Variables set up - 06-21-2004 , 05:56 PM






I have 50 packages that are going to call one package and I need to set up a
few global variables.

Is there an easy way to set up all the packages to have the same Global
variables?

It is going to take a great deal of time to open each package and add 3
variables.

Also, what about next month, when we decide we want to track something else,
I will need to do it again.

Thanks,

Tom.



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

Default Re: Global Variables set up - 06-21-2004 , 07:38 PM






In message <10dephpn7oeku7b (AT) corp (DOT) supernews.com>, Thomas Scheiderich
<tfs (AT) deltanet (DOT) com> writes
Quote:
I have 50 packages that are going to call one package and I need to set up a
few global variables.

Is there an easy way to set up all the packages to have the same Global
variables?

It is going to take a great deal of time to open each package and add 3
variables.

Also, what about next month, when we decide we want to track something else,
I will need to do it again.

Thanks,

Tom.

The best way to do this is to design your packages, in advance, to read
from a central location, be that a SQL Server table, ini file or
similar, using the Dynamic Properties Task.

If the packages already exist you could manually alter them to do this
or write some code to load each package, and the requires tasks, or just
update the relevant task as a one off.


--
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
  #3  
Old   
Thomas Scheiderich
 
Posts: n/a

Default Re: Global Variables set up - 06-21-2004 , 11:57 PM



"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
In message <10dephpn7oeku7b (AT) corp (DOT) supernews.com>, Thomas Scheiderich
tfs (AT) deltanet (DOT) com> writes
I have 50 packages that are going to call one package and I need to set
up a
few global variables.

Is there an easy way to set up all the packages to have the same Global
variables?

It is going to take a great deal of time to open each package and add 3
variables.

Also, what about next month, when we decide we want to track something
else,
I will need to do it again.

Thanks,

Tom.


The best way to do this is to design your packages, in advance, to read
from a central location, be that a SQL Server table, ini file or
similar, using the Dynamic Properties Task.

If the packages already exist you could manually alter them to do this
or write some code to load each package, and the requires tasks, or just
update the relevant task as a one off.
We have to quit meeting like this

There may not be an easy way to do this, in my case. I am setting up a
separate task already specifically to allow me to makes changes in the
future, without the need to add tasks or code in each package to handle new
functions. Unfortunately, if I need to add a new variable, I would also
need to put some code in each package to deal with the new variable. Most
of the code will be in the single package, hopefully.

Thanks,

Tom.
Quote:

--
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.