dbTalk Databases Forums  

Activex Script to create & name output files according to global variable

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


Discuss Activex Script to create & name output files according to global variable in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Elaine Paula
 
Posts: n/a

Default Activex Script to create & name output files according to global variable - 12-09-2003 , 11:41 AM






Hi,

I need to read in a global variable to name my output
files. Then I need to create a new file for each product
in the table, and name the file by the product name and
the value of the parameter.

For example, if the parameter is 12/31/2003, I would need
to create a file called ProductName12312003.txt

I am new to DTS and would appreciate any help.

Thanks,

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

Default Re: Activex Script to create & name output files according to global variable - 12-09-2003 , 12:47 PM






In article <0bb401c3be7b$b5f34620$a001280a (AT) phx (DOT) gbl>, Elaine Paula
<elaine.paula (AT) sunlife (DOT) com> writes
Quote:
Hi,

I need to read in a global variable to name my output
files. Then I need to create a new file for each product
in the table, and name the file by the product name and
the value of the parameter.

For example, if the parameter is 12/31/2003, I would need
to create a file called ProductName12312003.txt

I am new to DTS and would appreciate any help.

Thanks,
This shows how to change a text file connection-
How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)

Not sure exactly how the one file per product works, but this might
help-
How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

Depending on exactly what you mean you may also want to have a look at
the Write File Transform.

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