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)
 Dynamic DTS FTP

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-02-20 : 08:08:14
MH writes "I have multiple FTP sites that will have random files created daily, I need to import only certain file names with the current date timestamp.

Is there a custom ActiveX script or Batch file or FTP command that will check time stamp, and file name ie *list*.csv currentdate

my other option is to use a lookup table that contains each file name and a date field that is updated by the export process on the other end, utilizing this table, have DTS lookup fields with the current date, and append those file and server names to the import process to only import current files.

Any suggestions or examples are welcome...
Thanks ahead
M"

nr
SQLTeam MVY

12543 Posts

Posted - 2004-02-20 : 09:14:58
Look at these
http://www.nigelrivett.net/s_ftp_GetDir.html
http://www.nigelrivett.net/s_ftp_PutFile.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -