![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I use dynamic properties with my .INI file for setting things like connection strings, file paths, etc. However, I'm trying to figure out how to write data back to my .INI file from a DTS package. I have a run-date key/value pair that must be updated after each successful run of the DTS package. Is there a way to do this from one of the DTS tasks? If not, what are most folks doing to solve this problem? I know that saving it to one of the global variables isn't practical. I could store it to a SQL table but I desire to keep all my configuration data together in one place, hence the use of an .INI file. Thanks, Scott Stubbs |
#3
| |||
| |||
|
|
AFAIK you cannot write back to the INI file. You could build a custom task which uses one of the APIs for writing to INI files. http://www.thescarms.com/vbasic/registry.asp -- -- 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 "Scott Stubbs" <sestubbs (AT) nospam (DOT) com> wrote in message news:edEYzEDOEHA.1392 (AT) TK2MSFTNGP09 (DOT) phx.gbl... I use dynamic properties with my .INI file for setting things like connection strings, file paths, etc. However, I'm trying to figure out how to write data back to my .INI file from a DTS package. I have a run-date key/value pair that must be updated after each successful run of the DTS package. Is there a way to do this from one of the DTS tasks? If not, what are most folks doing to solve this problem? I know that saving it to one of the global variables isn't practical. I could store it to a SQL table but I desire to keep all my configuration data together in one place, hence the use of an .INI file. Thanks, Scott Stubbs |
![]() |
| Thread Tools | |
| Display Modes | |
| |