?
Solved

Export Sharepoint 2010 LIST to SQL nightly

Posted on 2014-03-27
4
Medium Priority
?
3,515 Views
Last Modified: 2014-12-07
I have a SharePoint 2010 Foundation and I would like to have a single list exported and then imported into my SQL 2008 (or 2005) machine. I need this because I need to build a clean automated email report nightly. Currently I have Data Source with SharePoint List data source type but the reporting is limited.

What is my best option? My true goal is to get this list into a SQL table so I can build real reports using Visual Studio.
0
Comment
Question by:allenkent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 39963856
You could do this with PowerShell. There are other ways of course, but PowerShell might be a good solution for you.
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 2000 total points
ID: 39965773
You could always query the WSS Content database directly in SQL and ETL the data out :) MSFT discourages direct querying of the content databases, but we've done it a number of times without issue and it's the most straightforward way to do it.

Alternatively, and in a totally supported fashion, you could go the route of creating a .NET SQL-CLR assembly that queries the SharePoint Webservice to fetch the contents of your list, and then returns them to SQL in the form of an output table you can merge directly into your data warehouse:

http://www.sharepointjohn.com/sharepoint-2010-sql-server-2008-query-the-sharepoint-object-model-from-a-net-sql-server-clr-function/

We've also done this before, and it works excellently. It's a bit more work up front, but it's smooth once it's deployed, and a random service pack won't break it because you're going through the official channels to get your data (as opposed to a query on the WSS Content database, which could break at any time as, again, it's unsupported).
0
 

Author Closing Comment

by:allenkent
ID: 40016324
This got me on the right path. The following video ended up answering step by step on how to do this process.

https://www.youtube.com/watch?v=O0OjT_VEObI
0
 
LVL 1

Expert Comment

by:G4lly
ID: 40485821
You can also look at AxioWorks SQList which will continuously export SharePoint Online and SharePoint onpremise lists, libraries, files and attachments into normalised SQL Server Tables.

Really useful when wanting to write complex SSRS reports or if you want to surface the data on the web etc via ASP .NET etc.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question