SSIS - Sharepoint List Adapters for SQL Server 2016

本小妞迷上赌 提交于 2020-02-28 17:17:46

问题


We have many SSIS imports in our environment all created with SQL / Visual Studio 2008 version. We run a lot of imports from SharePoint and for that we have been using SharePoint List Adapters that we got from CodePlex long time ago. It works great in SSIS 2008. However we are trying to upgrade all of our jobs to run with newer version and using SQL Server Data Tools 2015.

I installed SQL Server Data Tools 2015 on the same machine as SQL Server 2008 Developer Tools. I am still able to use the 2008 version and see the SharePoint list adapters there but they do not show up in the 2015 version. Also the 2015 version doesn't have the SSIS Data Flow Items tab in the "Choose Toolbox Items"

Is there any way for me to add the same SharePoint data flow item components to the 2015 version? I searched and found some suggestions. Tried these steps which did not work unfortunately:

  1. Copied

    • FROM "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents\SharePointListAdapters.dll"
    • TO "C:\Program Files (x86)\Microsoft SQL Server\130\DTS\PipelineComponents\SharePointListAdapters.dll"
  2. Ran this command from administrator CMD prompt

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools> gacutil -i "C:\Program Files (x86)\Microsoft SQL Server\130\DTS\PipelineComponents\SharePointListAdapters.dll"

  1. Opened SQL Server Data Tools 2005 and refreshed the SSIS toolbox but the SharePoint components did not appear.

Is there anything else that I can try?

Thanks


回答1:


The CodePlex Sharepoint List Adapters for SSIS are obsolete. They cannot be used in newer version of SSIS.

ODATA Components

In newer versions you can use the ODATA components which can be found in SQL Server feature pack. (In SQL server 2016+ they are installed with SSIS)

You can use ODATA Source to read from Sharepoint list.

Third-party Components

Another way is to use third-party components which can be found in Visual studio marketplace.


Helpful links

  • Reading SharePoint Lists with Integration Services 2017
  • SSDT2015 compatible with Sharepoint List Adapters (Codeplex)
  • Using the OData Source in SQL Server Integration Services
  • SharePoint SSIS Components

Update based on the OP Comments

In the comments below the OP mentioned that he found a new version of SSIS Sharepoint List Adapters published on GitHub:

  • SharepointListAdapters-2017-11-27



回答2:


Here is what I did to get the SharePoint List Adapter SSIS components to work in both 2008 and new 2015 version on the same machine (Windows 10).

I already had SQL Server 2008 Client Tools Developer and SSIS SharePoint List Adapters installed and working. After installing SQL Server Data Tools 2015 on the same device, the following was done to get the SharePoint components working in both:

  1. Make backup of existing GAC_MSIL assemblies. Old version on my computer was 1.0.0.0_f4b3011e1ece9247

    C:\Windows\assembly\GAC_MSIL\SharePointListAdapters
    C:\Windows\assembly\GAC_MSIL\SharePointListConnectionManager
    
  2. Make a backup of SharePointListAdapters.dll from:

    C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents
    
  3. Uninstall old version of SharePoint List Adapters for SSIS

  4. Download and install new version from:

    • SharepointListAdapters-2017-11-27

After installing - open SSDT 2015 and refresh the SSIS toolbox to make sure they SharePoint Source and Destination components appear under the Common section.

  1. To get these components working in VS2008 on same device:

    • Copy the GAC_MSIL assemblies which were backed up earlier back to the folders which now should only have the 1.2.x folder in it. End result is that the GAC_MSIL folders should have the old 1.0.x folder and the 1.2.x

    • Copy the backed up SharePointListAdapters.dll back to C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents You can re-name or overwrite the newer version that got installed there. I renamed it.

    • Open CMD prompt as administrator
    • Switch to C:\ prompt first and then change directory using this command: CD Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
    • Run the following command:

      gacutil -i "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents\SharePointListAdapters.dll"
      

At this point the SharePoint List Adapters in VS2008 should be functional once again. The SP adapters in SSDT 2015 should be available as well at the same time.

Hope this helps



来源:https://stackoverflow.com/questions/55129595/ssis-sharepoint-list-adapters-for-sql-server-2016

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!