Using FTP in SQL 2000

  • I am trying to FTP a file onto SQL 2000 server to load data in the database.  SQL server 2000 DTS allows to FTP using DTS package.  I want to use DTS package to do it so that I can create FTP and data load in the same package.  On the source server file is in a sub folder so when I login thru FTP I see default folder and not the whole path and file that I can select for destination.  Does anyone know how I can accomplish it?  Any help will be greatly appreciated.

    Thank you

  • Hi,

    I've done this using the cmdexec feature, and executing ftp using

    ftp -s:filename

    where filename is a text file of commands, just like you'd type into ftp command line. i.e.

    open hostname.com

    user myuser

    mypassword

    cd ftpdir

    get *.zip

    bye

    Give that a try....

    -David

     

  • Use the inbuilt DTS FTP Task.

    If you know the path to the file, you set it statically using Disconnected Edit, or dynamically using Dynamic Properties task.

    --------------------
    Colt 45 - the original point and click interface

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply