![]() |
VOOZH | about |
This article illustrates using the SFTP ADO.NET Data Provider within a SQL Server SSIS workflow for the direct transfer of SFTP data to a Microsoft SQL Server database. It's worth noting that the identical process detailed below is applicable to any CData ADO.NET Data Providers, enabling the direct connection of SQL Server with remote data through SSIS.
In the Data Flow screen, add an ADO.NET Source and an OLE DB Destination from the toolbox.
๐ The components used in the data task in this example.In the connection manager, enter the connection details for SFTP data.
SFTP can be used to transfer files to and from SFTP servers using the SFTP Protocol. To connect, specify the RemoteHost;. service uses the User and Password and public key authentication (SSHClientCert). Choose an SSHAuthMode and specify connection values based on your selection.
Set the following connection properties to control the relational view of the file system:
Open the DataReader editor and set the following information:
SELECT Filesize, Filename FROM MyDirectory WHERE FilePath = /documents/doc.txt
Open the OLE DB Destination and enter the following information in the Destination Component Editor.
Configure any properties you wish on the Mappings screen.
๐ Input and destination columns in the OLE DB Destination Editor.Download a free trial of the SFTP Data Provider to get started:
Download NowLearn more:
๐ SFTP IconAn easy-to-use database-like interface for .NET applications access to remote files and directories.