Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SFTP, encrypt or compress data files in SSIS using custom components


SFTP, encrypt or compress data files in SSIS using custom components

Author
Message
Stan Kulp-439977
Stan Kulp-439977
Old Hand
Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)

Group: General Forum Members
Points: 350 Visits: 1106
Comments posted to this topic are about the item SFTP, encrypt or compress data files in SSIS using custom components
jbuchan
jbuchan
SSC-Enthusiastic
SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)

Group: General Forum Members
Points: 144 Visits: 298
I have just completed a project on this myself but I hadn't used those components as I didn't know about them at the time.

I used WinSCP automation
http://winscp.net/eng/docs/library_install

and Bouncy castle decryption runtime
http://www.bouncycastle.org/csharp/

I then had it all in script tasks
Eric Heilman
Eric Heilman
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 120
When using custom components like this, how can you deploy the SSIS packages to a SQL Server? Does the custom compenent also need to be installed on the server?

My team has looked into this before, but always hit a roadblock with the server installation side of things.
jbuchan
jbuchan
SSC-Enthusiastic
SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)

Group: General Forum Members
Points: 144 Visits: 298
It would need to be installed on the remote server as well.
Assemblies etc, need to be installed to the GAC for the package to be able to access them correctly.
Stan Kulp-439977
Stan Kulp-439977
Old Hand
Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)

Group: General Forum Members
Points: 350 Visits: 1106
I have found a pretty reliable way to install assemblies to the GAC.

First, get your hands on a copy of Version 3.5.30729.1 of gacutil.exe.



Next, copy gacutil.exe into the same folder that contains the DLL.

Lastly, open up a command console, move to the folder containing the DLL, and execute the command:

>gacutil -i assembly.dll

This way you don't have to worry about paths or different versions of gacutil.exe that might exist on the server.

However, in this particular case the extensions come with an installer that works quite well. All you have to do is run the installer on the server(s) where you want to deploy them.
boriskey
boriskey
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 256
great post, I bookmarked it for my next project. I was also looking at scripting with winscp but I think this approach is more SSIS friendlier that custom scripting and calling winscp.

on a side note, it is a shame that microsoft still does not have native support for sftp in 2012 version.
Stan Kulp-439977
Stan Kulp-439977
Old Hand
Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)Old Hand (350 reputation)

Group: General Forum Members
Points: 350 Visits: 1106
jbuchan (3/13/2014)
I have just completed a project on this myself but I hadn't used those components as I didn't know about them at the time.

I used WinSCP automation
http://winscp.net/eng/docs/library_install

and Bouncy castle decryption runtime
http://www.bouncycastle.org/csharp/

I then had it all in script tasks


I wrote an article a while back on SFTP using puTTY from a script task.

http://www.sqlservercentral.com/Contributions/Edit/69931

It works, but I found its reliability to be wanting. Popping up a command console in the middle of executing an SSIS package just doesn't seem to work as well as it should. I found it was failing about one time out of ten. That's when I started looking for a replacement and stumbled upon this set of extensions.
jbuchan
jbuchan
SSC-Enthusiastic
SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)

Group: General Forum Members
Points: 144 Visits: 298
I just installed it via Inno Setup, wrote a quick installer using bits from the web and it worked fine as well. It also made it easier for me to repeat the install/ uninstall process for testing

Stan Kulp-439977 (3/13/2014)
I have found a pretty reliable way to install assemblies to the GAC.

First, get your hands on a copy of Version 3.5.30729.1 of gacutil.exe.



Next, copy gacutil.exe into the same folder that contains the DLL.

Lastly, open up a command console, move to the folder containing the DLL, and execute the command:

>gacutil -i assembly.dll

This way you don't have to worry about paths or different versions of gacutil.exe that might exist on the server.

However, in this particular case the extensions come with an installer that works quite well. All you have to do is run the installer on the server(s) where you want to deploy them.

jbuchan
jbuchan
SSC-Enthusiastic
SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)SSC-Enthusiastic (144 reputation)

Group: General Forum Members
Points: 144 Visits: 298
If you are confident in c# the WinSCP automation is quite powerful and stable.
If I didn't have to have had to apply so many business rules I would have used your method though, bookmarked it for future reference.

Stan Kulp-439977 (3/13/2014)
jbuchan (3/13/2014)
I have just completed a project on this myself but I hadn't used those components as I didn't know about them at the time.

I used WinSCP automation
http://winscp.net/eng/docs/library_install

and Bouncy castle decryption runtime
http://www.bouncycastle.org/csharp/

I then had it all in script tasks


I wrote an article a while back on SFTP using puTTY from a script task.

[url=http://www.sqlservercentral.com/Contributions/Edit/69931][/url]

It works, but I found its reliability to be wanting. Popping up a command console in the middle of executing an SSIS package just doesn't seem to work as well as it should. I found it was failing about one time out of ten. That's when I started looking for a replacement and stumbled upon this set of extensions.

yuping.su
yuping.su
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 56
I have been waiting Microsoft to provide sFTP support in SSIS. Apparently, the community responded faster! I have re-blogged this post with full credit and link/reference to this author. Thanks so much! w00t:-P:-D
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