OData Destination in SSIS - sql-server

Integration Services (SSIS) supports reading data from OData sources. However, there is no OData destination component.
I cannot specify the OData webservice with an HTTP connection manager as web service task in SSIS (i.e. it does not support Windows Authentication).
Using Entity Framework/ASP.NET I think I could just write a post-deployment script. But is there a more straightforward way to update OData (if possible in SSIS)?

I don't think there is an ODATA Destination component created by Microsoft. You can find ODATA Source and create an ODATA connections only. (In SQL Server 2014 you have to install it from the feature pack, in 2016+ it is included).
On the other hand, there is some third party components that you can find in Visual Studio Marketplace:
OData SSIS Components
SSIS Data Flow Source & Destination for OData
There was a feature request on Visual Studio website to support ODATA Destination, and it was closed.

Related

SSIS source connection via Azure Integration runtimes

As per upper image client hosted the integration runtime service in azure and there's SQL secure connection of client's on premise SQL database. So I want to use that connection in SSIS package as a source. Directly I can't use that SQL server name and password because it's encrypted via azure.So Is there any way to use that connection in SSIS?
From the documents, we can get that the Data factory only can run the SSIS package on Azure-SSIS Integration Runtime (IR), we can not using Self-hosted integration runtime for SSIS.
Such as: Run an SSIS package with the Execute SSIS Package activity in Azure Data Factory, all the documents never mentioned Self-hosted integration runtime.
Since the self-host integration runtime is exist, you can using the it to fetch data from on premise server to Azure data ware house with the Data Factory copy activities.
You could reference bellow tutorials:
Copy data to and from SQL Server by using Azure Data Factory
Copy and transform data in Azure Synapse Analytics (formerly Azure
SQL Data Warehouse) by using Azure Data Factory
Hope this helps.

SSIS Power Query Source OData Connection Not Working

I'm trying to use a Power Query Source connector in SSIS (VS 2017) to get data from an OData data source.
I can create an OData connector and connect to it ok. When I try to look at the columns after entering my query I get the following error "could not load file or assembley 'Microsoft.OData.Edm.NetFX35.V7' (see attached image):
I've downloaded the nuget package directly but I'm not sure how to install it or where to install? Is it possible to connect to an OData source using the Power Query connector?
It is weird that I didn't find anything related to this error online, but I will suggest some possible solutions:
(1) Run package in 32-bit mode
Try to change Run64bitRuntime property to False in the project properties:
Switch package from 64bit to 32bit
(2) Install ODATA Components
If you are using a prior version of SQL Server 2016 (if SQL 2016 or newer, these components are installed by default) , try to install ODATA components from SQL Server feature pack, as example:
Microsoft® SQL Server® 2014 Feature Pack
(3) Check that you are selecting the proper TargetServerVersion
Check that you have selected the relevant SQL Server version within the project properties:
How to change TargetServerVersion of my SSIS Project

SQL server connecting to SharePoint server

I wish to connect SQL server 2012 to SharePoint server. This do complete SQL queries..what is the easy way to do so please?
I want to download data from a SharePoint table into SQL server table basically.
I can only find tutorials connecting SharePoint to SQL server. I want the other way around
Happy to do this via SSIS too..
Please help
There are three options to read from Sharepoint table:
(1) Using ODATA Components
You can use ODATA Source component to access to the Sharepoint Lists
Using the SSIS OData Source Connector with SharePoint Online
Using the OData Source in SQL Server Integration Services
Connecting to SharePoint from SSIS using OData Source
(2) Using Sharepoint List adapter
You can simply use the Sharepoint List adapter components which are an open source project created by SQL Server community within a project called MSSQL SSIS Community:
You can check the project page at the following link:
MsSQL SSIS Community
Or you can simply download the assemblies from the link below:
Project Releases
You can read more about this components in the following link:
Extracting and Loading SharePoint Data in SQL Server Integration Services
(3) Using third party components
KingswaySoft SSIS Integration Toolkit for Microsoft SharePoint
AxioWorks SQList
If you have Microsoft Access Database Engine 2010 Redistributable installed, you can use OPENROWSET command in a View.
I have created a View using OPENROWSET command. Below is the syntax I used, you need to replace the text enclosed in <> with your values:
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'WSS;IMEX=1;RetrieveIds=Yes;DATABASE=https://<tenant>.sharepoint.com/sites/<sitename>;LIST=<listID>;', 'select <columns list> from <list name as displayed in SharePoint>')
You will need SharePoint List ID that you can get easily by opening the list in browser and going to Settings, and checking the URL.. it is in format: {247c5fd8-32cd-4536-b1d0-e2e62845f174}. Please check this link.

SSIS/SSDT plugin for Visual Studio 2017 - SharePoint Adapters

I have installed Sql Server Data Tools for Visual Studio 2017 and noticed that there are no SharePoint connections in the SSIS toolbox. I know I can read from a SharePoint list using the ADO connecter and save it off somewhere, but what I'm looking for is reading a file in, a csv file, and then being able to write that information into a SharePoint list. This is a work machine and so I can't use the CodePlex archive options or the Kingswaysoft adapters. I was wondering is the SharePoint adapters only a third party option or is there an out of the box solution within the SSIS options that I'm missing. I've got Visual Studio 2017 Professional as well as Sql Server Management Studio 2014. The Sql Server Data Tools are for Visual Studio 2017.
Sharepoint Data Flow Components
I don't think there is an official Destination Component for Sharepoint in SSIS. Since you are using SQL Server 2014, you can benefit from ODATA Source component to connect to Sharepoint. These components are found in the SQL Server 2014 feature pack.
Unfortunately, if you need to write to a Sharepoint list, you have to use a third party components such as :
SSIS Data Flow Source & Destination for OData
OData SSIS Components
Using SSIS to Automatically Populate a SharePoint List
COZYROC - SharePoint Destination
SSIS Integration Toolkit for Microsoft SharePoint
Workarounds
You can use a Flat File Destination to Store the result inside a flat file on local folder. Then you can add a Script Task that will be executed after the Data Flow Task. Then write a C# / VB.NET script to upload the file to Sharepoint using Microsoft.Sharepoint.dll assembly. You can refer to the following links for more information:
How to: Upload a File to a SharePoint Site from a Local Folder
Another thing to try, if you are not familiar with Script Task and you have a knowledge in Web Services, try to create a WebService to upload files to SHarepoint List and use a Web Service Task instead of Script Task:
Upload a Document to the SharePoint Document Library using a Webservice
Upload document from Local Machine to SharePoint Library using WebService

SSIS 2016 : What kind of connector do we have as a replacement for SharePoint list adapter

We have SharePoint list adapters used in older version of SSIS to get data in & out of sharepoint/SQL Server. In SQL Server 2016 we have OData (Connection Manager for OData) for accessing sharepoint, but I can see OData only available for Source, is there a OData component available for sharepoint target as well?
Any suggestion on how we can use sharepoint as both source & target in SSIS 2016 will be helpful.
Thanks,
Sathesh
SharePoint List Adapter is up and running. And now even better -> the project was migrated to GitHub and supports SQL 2017.
Please download the latest release via
https://github.com/fan130/mssql-ssis-community-samples/releases

Resources