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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There are open source SSIS adapters available for SharePoint. You can use these.
http://sqlsrvintegrationsrv.codeplex.com/ http://sqlsrvintegrationsrv.codeplex.com/releases/view/17652
回答2:
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;
}