dbTalk Databases Forums  

DTS: make the txt file name unique using a certain format

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


Discuss DTS: make the txt file name unique using a certain format in the microsoft.public.sqlserver.dts forum.



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

Default DTS: make the txt file name unique using a certain format - 08-12-2005 , 01:19 PM






Hi,

I finally got the DTP package up and running:

- it runs the query
- saves it as a txt file to the local server
- ftp's it to a remote server

I just found out that the txt file has to be unique and follow a certain
format:

MIOsampleYYYYMMDDHHMM

MIOsample = always the same
YYYY = Year 2005
MM = Month 08
DD = Day 08
HH = 24-hour clock (military)
MM = minutes

I saw a mention of using "Dynamic Properties Task" but have no idea how to
use it or were to put it.

Any help would be greatly appreciated.

Thanks,

Mitch




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

Default Re: DTS: make the txt file name unique using a certain format - 08-12-2005 , 04:34 PM






In message <uP9rxq2nFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, mitch
<mitch_001 (AT) REMOVEyahoo (DOT) com> writes
Quote:
Hi,

I finally got the DTP package up and running:

- it runs the query
- saves it as a txt file to the local server
- ftp's it to a remote server

I just found out that the txt file has to be unique and follow a certain
format:

MIOsampleYYYYMMDDHHMM

MIOsample = always the same
YYYY = Year 2005
MM = Month 08
DD = Day 08
HH = 24-hour clock (military)
MM = minutes

I saw a mention of using "Dynamic Properties Task" but have no idea how to
use it or were to put it.
Dynamic Properties cannot support the date expression you need, so it
will have to be an ActiveX Script Task. Try something like this-

How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)
--
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.