dbTalk Databases Forums  

How do I write data back to my INI file?

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


Discuss How do I write data back to my INI file? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Scott Stubbs
 
Posts: n/a

Default How do I write data back to my INI file? - 05-12-2004 , 09:55 AM






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



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

Default Re: How do I write data back to my INI file? - 05-12-2004 , 10:11 AM






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

Quote:
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





Reply With Quote
  #3  
Old   
Scott Stubbs
 
Posts: n/a

Default Re: How do I write data back to my INI file? - 05-13-2004 , 08:24 AM



Allan,

I'm not supprised. I wish that Microsoft had provided full functionality
for INI files. While I'm at it... I wish that Microsoft had provided full
functionality for FTP too.

I realize there are components out there to do the job, I just have a
customer with some strict policies on using 3rd party components.

BTW, thanks for the link! That will come in handy for a future project.

Regards,

Scott Stubbs

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

Quote:
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







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.