SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SFTP through SSIS


SFTP through SSIS

Author
Message
qhjghz
qhjghz
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 57
Hi,
I require to do a SFTP through SSIS. I have used WINSCP for this purpose. I have used the command-line utility for WINSCP and am able to upload the file properly. But, I want the path to be uploaded to be a variable one and not a fixed one. Is it possible to pass a user input to the WINSCP command line script? if possible, can anyone please share the script?
CozyRoc
CozyRoc
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2362 Visits: 2235
qhjghz (1/7/2009)
Hi,
I require to do a SFTP through SSIS. I have used WINSCP for this purpose. I have used the command-line utility for WINSCP and am able to upload the file properly. But, I want the path to be uploaded to be a variable one and not a fixed one. Is it possible to pass a user input to the WINSCP command line script? if possible, can anyone please share the script?


In the Execute Process Task, you have to setup SSIS expression for the process argument. You can setup the expressions by right-clicking on the task and selecting Properties. Scroll-down and find Expressions. Setup expression for your argument there.

You may also consider the SFTP Task. It is commercial, but it is much better integrated with SSIS.

---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/


sacha.bessard
sacha.bessard
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 92
http://www.xoowiki.com/Article/SQL-Server/ssis-acces-sftp-475.aspx
Stan Kulp-439977
Stan Kulp-439977
SSC Eights!
SSC Eights! (918 reputation)SSC Eights! (918 reputation)SSC Eights! (918 reputation)SSC Eights! (918 reputation)SSC Eights! (918 reputation)SSC Eights! (918 reputation)SSC Eights! (918 reputation)SSC Eights! (918 reputation)

Group: General Forum Members
Points: 918 Visits: 1125
You can use the open source SSIS SFTP custom task component from this project at CodePlex.com

http://ssisextensions.codeplex.com/

Here is the 2008 R2 version:

http://ssisextensions.codeplex.com/releases/view/101949

Here is the 2012 version:

http://ssisextensions.codeplex.com/releases/view/101332
Lynn Pettis
Lynn Pettis
SSC-Dedicated
SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)

Group: General Forum Members
Points: 38933 Visits: 38508
Stan Kulp-439977 (10/18/2013)
You can use the open source SSIS SFTP custom task component from this project at CodePlex.com

http://ssisextensions.codeplex.com/

Here is the 2008 R2 version:

http://ssisextensions.codeplex.com/releases/view/101949

Here is the 2012 version:

http://ssisextensions.codeplex.com/releases/view/101332


Let's make this easier for others:

You can use the open source SSIS SFTP custom task component from this project at CodePlex.com

http://ssisextensions.codeplex.com/

Here is the 2008 R2 version:

http://ssisextensions.codeplex.com/releases/view/101949

Here is the 2012 version:

http://ssisextensions.codeplex.com/releases/view/101332

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
benjamin.reyes
benjamin.reyes
Mr or Mrs. 500
Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)Mr or Mrs. 500 (525 reputation)

Group: General Forum Members
Points: 525 Visits: 2286
I adopted a legacy log shipping setup that was sent over sftp using a combination of SSIS, putty, Sqb2mtf, a series of stored procs, and several configuration/logging tables.

It was mostly broken when I inherited it and spent a good amount of time getting it working and performing well considering the vendor and our internal requirements.

Sorry I don't have any code handy, but I can highly recommend Bitvise Tunnelier vs any of the other sftp options I tested. It's easily scripted and about as fast as sftp gets for Windows.

Why not handle the variables in T-sql, powershell,vb , pearl or python?

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search