Answered SFTP with sql server 2008

  • Wednesday, February 13, 2013 10:33 AM
     
     
    I want to know the syntax of SFTP command that will execute by sql server job and what steps will I have to follow to do public key authentication ? I am using SFTP to transfer files from window server 2008 to another window server 2008.

    Nitin Varshneya

All Replies

  • Wednesday, February 13, 2013 12:54 PM
     
     Answered

    AFAIK sql server doesn't process SFTP. you could try SSIS but that would only give you FTP (if you look in codeplex you will find custom components that should do it).

    The main option that you have is to call/execute an external application like WinSCP either via enabling xp_cmdshell and scripting it or using powershell to call it with the correct command line arguments.

    Regards

    Rui

  • Wednesday, February 13, 2013 1:17 PM
     
     
    See these
    http://www.example-code.com/sql/sftp.asp
    http://www.example-code.com/sql/sftp_pubkeyAuthenication.asp

    Many Thanks & Best Regards, Hua Min