Import Sharepoint Document Library using SSIS

后端 未结 2 1919
执笔经年
执笔经年 2020-12-21 19:21

We need to import SharePoint Document Library (which could be holding multiple document in multiple formats) to a destination folder (on different server) using SSIS.

相关标签:
2条回答
  • 2020-12-21 19:56

    There are open source SSIS adapters available for SharePoint. You can use these.

    http://sqlsrvintegrationsrv.codeplex.com/ http://sqlsrvintegrationsrv.codeplex.com/releases/view/17652

    0 讨论(0)
  • 2020-12-21 20:14

    You can also create a script task in ssis and use c# to extract files from SharePoint Library to a local folder. Make sure the SharePoint url only contains siteurl/Library/Folder/File (no special characters). Below copies one file but can be modified to copy multiple files. Good luck.

    using System.net;
    
    
    public void main ()
    {
    WebClient Client = new WebClient();
    Client.UseDefaultCredentials = true;
    Client.DownloadFile("yourSharePointurl/File.ext", 
    @"YourLocalFolder/File.ext");
    Dts.TaskResult = (int)ScriptResults.Success;
    }
    
    0 讨论(0)
提交回复
热议问题