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.
-
social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/…Dennis G– Dennis G2012-09-12 20:35:22 +00:00Commented Sep 12, 2012 at 20:35
-
Why do you want to use SSIS for this? Why not write a small application to do it? Also, which version of SharePoint?John Saunders– John Saunders2012-09-13 02:23:13 +00:00Commented Sep 13, 2012 at 2:23
Add a comment
|
3 Answers
There are open source SSIS adapters available for SharePoint. You can use these.
http://sqlsrvintegrationsrv.codeplex.com/ http://sqlsrvintegrationsrv.codeplex.com/releases/view/17652
Comments
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;
}