SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

AskSQLTeam
Ask SQLTeam Question

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

nr
SQLTeam MVY

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.

See
www.nigelrivett.com
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

Andraax
Aged Yak Warrior

Sweden
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  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000