For SQL Server 2014 – Use the following link below to use an oData Source to get data from SharePoint List into your table
Below are the steps if you want to use SQL Server 2014 to get data from a SharePoint list into your database.
The URL below explains how to download and install the OData Source for SQL Server
1. Click on the following link below
2. Then once you load the page click on Download
a. This will then bring up which components you want to download.
b. Scroll down and select the following:
3. Then download and install the component.
a. You can just accept all the defaults in the Wizard.
4. Then if you now open SSDT, and drag in a new Data Flow Task, then click on the Common Section you should see the following:
5. NOTE: We would want to use the X86 version for our testing in SSDT, due to SSDT being a x86 version.
6. NOTE II: You will also have to install the component on your SSIS Server and configure your SSIS package to run in 32bit mode, so that when it is run as part of the job in SSIS it will function correctly.
Configuring your OData Source in SSIS
NOTE: You might have to create your SQL Table, to get the data from your SharePoint List into the table before you complete the steps below. Or you can create the table after step 2 below.
1. Once you have followed the steps above, the one thing to note is how to get the correct URL so that we could create our connection to our Lists
a. With the example below our URL was:
b. Now in order to get the URL for the lists, we had to put in the following:
ii. NOTE: In your Site, you just need to add the following:
iii. Also ensure the account that you use has access to the SharePoint List.
c. And then you have your connection completed.
d. After which you can then select your List from the drop down in your
2. And then we configured our OData Source with the following:
b. Under Use collection or resource path, ensure that you select Collection.
c. Under Collection, click on the drop down, and ensure that you select your SharePoint List that has been created in SharePoint
i. In our example it was called: CrimeReportingSubscriptions
d. You can then click on Preview to see that you are getting the expected data.
e. Then if you click on Columns you will then see all the SharePoint related columns, as well as the columns from your List
g. NOTE: Ensure that you do have some data already in your list.
h. Then click Ok to have your OData Source completed.
3. Then once completed it will look like the following in your Data Flow