dbTalk Databases Forums  

Dynamic Task Properties - Dynamically

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


Discuss Dynamic Task Properties - Dynamically in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sean Walsh
 
Posts: n/a

Default Dynamic Task Properties - Dynamically - 10-03-2003 , 07:13 AM






Hi

Maybe someone can suggest a better way of doing this:

I have DTS Packages to load data into a data warehouse, and the
packages fetch settings from an INI file. I want to move the packages
up from DEV to STAGING then to LIVE. Each time, the directory
structure will be different, so the path for the INI file will change.
At the moment, for every task-setting that needs to be set, I fetch
the value from the INI file, but for each setting (and there are
several) I have to enter the INI file path & name.

This means that each time I have to move a package from DEV to
STAGING, or STAGING to LIVE, I have to manually change the path &
filename of the INI file for EVERY dynamic setting. This seems to
defeat the point. Is there some way that I can dynamically set the
source of a dynamic setting?

Thanks
Sean

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

Default Re: Dynamic Task Properties - Dynamically - 10-03-2003 , 07:40 AM






You can probably reverse engineer this

How to add a Dynamic Properties task to a package and manipulate it using
VB.
(http://www.sqldts.com/default.aspx?252)



--
--

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

"Sean Walsh" <plugNOwalshSPAM (AT) yahoo (DOT) com> wrote

Quote:
Hi

Maybe someone can suggest a better way of doing this:

I have DTS Packages to load data into a data warehouse, and the
packages fetch settings from an INI file. I want to move the packages
up from DEV to STAGING then to LIVE. Each time, the directory
structure will be different, so the path for the INI file will change.
At the moment, for every task-setting that needs to be set, I fetch
the value from the INI file, but for each setting (and there are
several) I have to enter the INI file path & name.

This means that each time I have to move a package from DEV to
STAGING, or STAGING to LIVE, I have to manually change the path &
filename of the INI file for EVERY dynamic setting. This seems to
defeat the point. Is there some way that I can dynamically set the
source of a dynamic setting?

Thanks
Sean



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

Default Re: Dynamic Task Properties - Dynamically - 10-03-2003 , 11:50 AM



Set it with a variable and use ActiveX task to read the file. Pass the value
using dtsrun.exe.

"Sean Walsh" <plugNOwalshSPAM (AT) yahoo (DOT) com> wrote

Quote:
Hi

Maybe someone can suggest a better way of doing this:

I have DTS Packages to load data into a data warehouse, and the
packages fetch settings from an INI file. I want to move the packages
up from DEV to STAGING then to LIVE. Each time, the directory
structure will be different, so the path for the INI file will change.
At the moment, for every task-setting that needs to be set, I fetch
the value from the INI file, but for each setting (and there are
several) I have to enter the INI file path & name.

This means that each time I have to move a package from DEV to
STAGING, or STAGING to LIVE, I have to manually change the path &
filename of the INI file for EVERY dynamic setting. This seems to
defeat the point. Is there some way that I can dynamically set the
source of a dynamic setting?

Thanks
Sean



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.