How to get a file from an FTP site using a stored procedure

I want to create a stored procedure (on SQL Server 2005) that retrieves a file from an FTP site , saves it locally, and then runs an SSIS package to import the contents of the file into a table.

After some suggestions on how to extract the file , the stored procedure is called. Should I use the SQL CLR, invoke the SSIS package that does this, xp_cmdshell or something else?

I would like this process to be as general as possible, so we can use it again and again.

+3
source share
2 answers

I am the second SSIS route.

, , FTP, , , SSIS. SSIS, , FTP , , , .

+1

SSIS. , , .

, , .

0

Source: https://habr.com/ru/post/1708664/


All Articles