Reputation: 1707
Is there a way that can do secure ftp using sql server 2005? I need to secure ftp to some server and pull a file. It would be best to do it using T-SQL, if not, any other way? Actually I already googled a bit and below is my results, I have no experience with CLR, some experience with SSIS. I would like to here your suggestions regarding these two approaches or any other way?
Thank you, Nian
Upvotes: 0
Views: 1427
Reputation: 46040
Indeed, your main options for SSIS are either take a pre-created task for SFTP and FTPS or write one using corresponding .NET components. In regards to existing tasks the alternatives are /n software's SSIS tasks, Cozyroc and our BizCrypto . Our BizCrypto uses SecureBlackbox .NET components for SFTP and FTPS (another our product).
Note that "Secure ftp" is a confusing term. FTP protocol (as defined in RFC 959) is secured using SSL/TLS and you get FTPS. SFTP (SSH File Transfer Protocol) is a completely different thing - though it's also almost always used as a file transfer protocol, it has very little in common with FTP protocol. Our products support both SFTP and FTPS.
Upvotes: 0
Reputation: 51494
You can use xp_cmdshell
, if that is enabled on your server, to execute a command line.
eg: http://www.tekkies.co.uk/v2/articles/1-general/15-ftp-using-xpcmdshell-sql2k
However, whatever you do, SQL server is not the best tool for the job. It's a database server.
Upvotes: 1