Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Change file name using GetDate()

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-21 : 11:25:46
yogendra kumar writes "Hi
I need to create a DTS package where i should get the data from a file on some server now file name is not same it is based on todays date
so if i get the file every friday then its name should be

InputFile<YYYYMMDD_hhmm>.txt
so how do i set this in my DTS package

Please reply urgent if possible
Thanks
Yogi"

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-21 : 13:08:54
What I do is have a VBScript step run before the transformation. This VBScript renames the file to the filename that the transformation is expecting.

Tara
Go to Top of Page
   

- Advertisement -