CDATA SFTP Connecter no file transfer - sql

at work we are trying to migrate some ssis packages from using ftp to sftp for file transfer. We bought the cdata connectors for ssis but all of them seem to be centered about data transfer or connecting to a file on the sftp server as the data source but don't say anything about file transfer over sftp.
Does anybody have any experience with these ? any information would help. please see below screen shots of the connectors

I've been in trouble with the same issue, and for me it was very strange to don't have the capability to transfer file using the Secure FILE TRANSFER Protocol.
I investigated the documentation of CData and I identified that it is possible to transfer files (upload or download) using Stored Procedures.
Here you can find the guide provided by CData to use these Stored Procedures:
http://cdn.cdata.com/help/SFF/rssis/pg_allsps.htm
Here you can find the guide to call Stored Procedures:
http://cdn.cdata.com/help/SFF/rssis/pg_ssisstoredprocedures.htm
For me, it worked fine to reach the expected result.

Related

How can I transfer Dropbox file data to SQL Table?

I'm getting files four days a week through my Dropbox folder and I need to add that data to my sql server.
In the past I've been using FTP to transfer files, but I'm not sure if FTP will work with Dropbox and I don't know how to do it.
I've had some experience with SSIS in the past and I'm pretty sure that SSIS could do this task, but I'm not able to add integration services extension to my SQL Server.
Does anyone have any idea what would be the easiest way to transfer these files to the database?
There are some third party components that allow you to read from Dropbox:
Kingswaysoft SSIS Dropbox Source Component
CDATA - Dropbox SSIS Components
Or you have to use an HTTP connection manager to download the file using Dropbox api:
http://www.sqlis.com/post/Downloading-a-file-over-HTTP-the-SSIS-way.aspx

Tried example of FTP Upload from VB code

Thanks to Martin Prikryl for three examples on page Upload file to FTP site using VB.NET
But I keep getting "Catch e" errors about not logged on or can't connect to server on two different servers. I can FTP to these servers using PuttyFTP or FileZilla. In each case, the statement that passes the Server IP address and destination path/file shows an exception when the object is right-clicked.Notated screen cap while stepping thru Upload routine
Any help would be appreciated, please.
If by "PuttyFTP" (which does not seem to exist) you mean psftp, then you are using SFTP protocol, not FTP protocol.
These two are completely different and incompatible protocols.
There's no native support for SFTP in .NET. You have to use a 3rd party library.
How do I upload a file to an SFTP server in C# / .NET?
SFTP Libraries for .NET

Export file from NetSuite's FileCabinet to FTP

File resides in the NetSuite file cabinet and needs to be placed on an FTP server each day.
I'm not sure how to handle this via Suitelet/RESTlet, or if it's possible - but would prefer to not use an external source/application.
My current and hopefully temporary workaround is a local scheduled task to run a script to pull files from NetSuite & upload to the FTP.
In SuiteScript 2.0, although unsecured FTP is still not support, but SS2.0 has the capability to do SFTP. See http://www.upilioconsulting.com/blog/netsuite-2016-2-sftp-suitescript-2-0/
In SuiteScript 1.0, it's not supported. The workaround is that you'll need to write a middleware code (i.e. in PHP) and let the middleware do the FTP transfer.
Netsuite doesn't interact with FTP.
You need a bridge server of some sort that runs a web app (full blown Apache or nginx running PHP or just a simple Node service)
Just get a server and install some web server/web service and POST your files to it (nlapiRequestURL with a Scheduled script). Have the web app on the bridge server send the files to the FTP server. If you are using Netsuite you can afford the cost of the bridge server.
One possible solution is to create a saved search on the Documents to list out all the files in Netsuite filtering by createdate or lastmodifieddate. Create a scheduler to fetch only the new files and save them locally where you want.
Note all the files will be in base64 encoded string format, you need to decode again to obtain the file.
As bknights said NetSuite doesn't support FTP. You need a web server(any server side language can do for that matter, I have written one in Node.js), to receive the files.
The file content for text file will be in Text format, so, no decode logic required for text files. However, binary/pdf/image and other would be in base64 format, as NetSuite's JS has no way of handling binary data. So, make sure you decode it before you create the file on your FTP Server.

Is it possible to rename a file on FTP server programmatically using cocoa?

My basic requirement is to add a ".temp" suffix to a file while it is getting uploaded on to the FTP server (suffix should be only for time until the file is fully uploaded).
As per my understanding, i thought this could be achieved by: Add a suffix to file on the local machine, then upload it and after the upload is complete, rename the file to remove suffix on server.
But now the another problem is that i could not found a way to rename a file on FTP server using cocoa. I know renaming a file is feasible using Java or other languages but i want to achieve the same in objectiveC.
Please tell be if the above task is feasible and if it is what is the approach i should follow?
FYI: I know how to upload and download a file on FTP server using NSInputStream and NSOutputStream.
Thanks. I'd appreciate any help.
Take a look at CFNetwork FTP docs. They do not mention exactly your case, but there may be a way to sent RNFR and RNTO commands over the stream.
https://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/CFFTPTasks/CFFTPTasks.html#//apple_ref/doc/uid/TP30001132-CH9-SW1
There is also a sample project you can look into:
https://developer.apple.com/library/ios/samplecode/SimpleFTPSample/Listings/Read_Me_About_SimpleFTPSample_txt.html
This library claims to do what you want (rename remote files)
http://www.chilkatsoft.com/ftp-objc.asp

upload file to my server using pentaho data integration(pdi)

On my pdi transformations, a file is created and then a table on my database_1 is updated with the information on that file.
That work perfectly fine.
What i need now is to upload the file to some place in my web server. But I want to upload it automaticaly each time I finish the transformation described above.
There is any job that could send a file to my web server?! or any other viable automated ways to do it?
thank you.
Can't you just use the SFTP step?