In SharePoint sometimes not all the data or information stored directly within the database. The problem comes when we want to generate a report that will need data stored inside SharePoint List. In this blog, I will show how to create report which the data is collected from the SharePoint list. And for generating the report I use SQL reporting service.
First of all, let's create sample SharePoint list:
Just create a simple SharePoint list, I would to like to give a name as A Movie List
And I also would like to add some custom columns to beautify my list my custom list looks like this:
The next step is adding information into the list
Now it's time to create the report from the list using SQL Reporting Service (SSRS). The step by step to generate the report is similar with the regular report that we would like to create. The different is that the type of the connection when creating the data source is quite different. I will show how to create the connection linked directly into SharePoint list.
When creating data source just chose "Embedded connection" then choose the type "Microsoft SharePoint List". For the connection string, just type the URL of your SharePoint web application where the list is placed so the configuration will look like this:
For the credential itself, just choose "Use Windows Authentication (integrated security)"
Once you're done creating the data source, it's time to make the report by creating a new data sets. In the report data pane, right click on datasets folder -> add datasets...
In the query tab, choose "Use a dataset embedded in my report", choose the data source that previously has been created, and click "Query designer" to see the list you want to generate as a report
Based on my scenario, I will just choose the list I already created named "Movie List" and just choose 3 columns to be added to my report
Click "Run Query" to see the data that will be gathered
The next step is just do drag and drop the datasets into your table, and design the table based on your desire as a final report that is taken from SharePoint List just like what I design as the picture below :D
And..... the last step is deploying your report. Depend on your business needs. If you are using SQL Reporting Services with SharePoint Integrated, just save your report directly in site contents, or if you are using native SSRS, just deploy to your report server...
Happy Trying :D
Thanks for visiting my blog
























