【发布时间】:2012-09-12 09:47:00
【问题描述】:
我们需要使用 SSIS 将 SharePoint 文档库(可能包含多种格式的多个文档)导入目标文件夹(在不同的服务器上)。
【问题讨论】:
-
为什么要为此使用 SSIS?为什么不写一个小应用程序来做呢?另外,SharePoint 的哪个版本?
标签: sharepoint ssis
我们需要使用 SSIS 将 SharePoint 文档库(可能包含多种格式的多个文档)导入目标文件夹(在不同的服务器上)。
【问题讨论】:
标签: sharepoint ssis
有可用于 SharePoint 的开源 SSIS 适配器。你可以使用这些。
http://sqlsrvintegrationsrv.codeplex.com/ http://sqlsrvintegrationsrv.codeplex.com/releases/view/17652
【讨论】:
您还可以在 ssis 中创建脚本任务并使用 c# 将文件从 SharePoint 库提取到本地文件夹。确保 SharePoint url 仅包含 siteurl/Library/Folder/File(无特殊字符)。下面复制一个文件,但可以修改为复制多个文件。祝你好运。
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;
}
【讨论】: