viernes, 17 de febrero de 2012

Using a SharePoint List as a Data Source in SQL Server Reporting Services 2008 R2

Create a Data Source

When building a report that uses data in a SharePoint list, the Data Source Connection String property must be set to the URL of the SharePoint site or subsite that contains the list you want to use in your report. Right click on the Data Sources node in Report Data and select Add Data Source from the popup menu. Fill in the Data Source Properties General tab as shown below (specify the URL in the Connection string for your SharePoint site or subsite):

the Data Source Connection String property must be set to the URL of the SharePoint site or the subsite

Click on Credentials and fill in the dialog as shown below:

Click on Credentials and fill in the dialog

Create a Dataset

Once you have a Data Source that points to the URL of a SharePoint site or subsite, the next step is to create a Dataset based on the Data Source. Right click on Datasets in Report Data and select Add Dataset from the popup menu. Fill in the dialog as shown below (select the Data Source created above):

create a Dataset based on the Data Source

Click on the Query Designer button to display the SharePoint lists in the SharePoint site specified in the Data Source. Select a list and some fields from the list as shown below (I chose an Announcements list):

Click on the Query Designer button to display the SharePoint lists in the SharePoint site specified in the Data Source

Note that you can only select fields from one list. Click OK and you will be returned to the Dataset Properties dialog which is now complete:

you will be returned to the Dataset Properties dialog

The Query is displayed as XML and it shows the name of the list and the fields selected.

 

Más información:

http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/

No hay comentarios:

Publicar un comentario