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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Article Discussion
 Article: Using DTS and FTP to Push Files
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 01/13/2003 :  14:49:41  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
This article comes to us from Bill Twomey. Bill writes "I had to automate a daily extract process. This job had to extract a set of records, and deliver them to a remote system. At first this seemed like an easy task, but the requirements of outgoing transfer, a new filename each day and verifying delivery, made the assignment interesting. What’s so interesting since DTS gives you an FTP task? The FTP task does not deliver files. How do you verify the delivery? The FTP task will not do this. I resorted to using FTP in another way. Along the way, the assignment became a challenge to get the package to handle the daily-changing filename."

Article Link.


United Kingdom
12543 Posts

Posted - 05/07/2003 :  12:19:55  Show Profile  Visit nr's Homepage  Reply with Quote
You can also use t-sql to do the ftp in a stored proc. It will need a work directory but is easier than dts.
This gets round any problems with file names and you can do a dir command in the same way to verify the delivery.

FTP Put File using t-sql
FTP Get Directory t-sql

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

Aged Yak Warrior

790 Posts

Posted - 05/07/2003 :  15:43:16  Show Profile  Reply with Quote
I've actually gone down nigel's road, not using the DTS very much any more. It's amazing what can be done using pure t-sql, linked servers, bcp etc.

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000