AdventureWorks Report Samples
The AdventureWorks 2012 sample reports are a suite of predefined report definition files that use the AdventureWorks 2012 database as a data source. You can upload and view each report separately; however, some reports are designed to work together through the use of links. You can use the sample reports to familiarize yourself with the features of SQL Server 2012 Reporting Services (SSRS) or as templates for designing new reports.
| Issue: |
| The SQL Server 2012 Reporting Services (SSRS) AdventureWorks sample reports do not run and you receive the message “Cannot create a connection to data source AdventureWorks2012”. |
To view the AdventureWorks sample reports for SQL Server 2012 Reporting Services, you must have the corresponding AdventureWorks sample database installed. If you cannot connect to the AdventureWorks2012 database, you will not be able to run the corresponding sample reports.
The problem is most likely that the AdventureWorks2012 database is not installed.
| SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. To download the AdventureWorks Sample Reports for SQL Server 2012, click here. For information about downloading databases, click here. |
| Note: |
| Ifyou are publishing reports to a SharePoint site that is integrated with a report server, you must modify the report server URL before publishing the sample reports to the report server. |
2008 publishes product and sales information that is accessed by employees throughout the company. The reports present this data in a variety of formats. Users can view these reports on demand by opening them in Report Manager.
Report Definition Language (RDL)
The AdventureWorks 2012 sample reports demonstrate a wide range of report features. The following table provides descriptions that explain which features are implemented in each report.
| Report || Description |
| AdventureWorks2012_Base|| The base report, which includes the shared data source for the AdventureWorks 2012 database, the AdventureWorks logo image and report title in the page header, a report description with parameter-controlled visibility in the page footer, scenario text with toggle-controlled visibility. |
| EmployeeSalesSummary|| Adventure Works Cycles sales summary report for an individual employee. Displays year over year sales for all categories, for individual categories, and for quotas. Includes charts (line, sparkline, column with scale breaks, databar), tablix (toggle rows, row group, indicators at table and group level), group and report variables, rectangle containers, shared datasets, shared data source, custom code for chart line color, bookmarks, drilthrough action to the SalesOrderDetail report, multivalue parameters, and parameters to control conditional visibility of text boxes and toggle rows. |
| SalesOrderDetail|| Detail of an individual Adventure Works Cycles order. Displays details for a range of orders, and is a drillthrough report for an individual sales order from EmployeeSalesSummary. Includes free form layout, tablix used as list and table, a subreport, session variables for calculating running page totals, custom code, image, expression-based page breaks based on the number of detail rows, page names, page numbering with report and within group, and conditionally hidden text. |
| StoreContacts|| AdventureWorks store contacts. Used in SalesOrder_Details to display multiple store contacts. Includes page header and footer items that are not included when the report is rendered as a subreport. |
| SalesbyRegion|| Shows regional sales by US state. For each state, displays sales totals for individuals, sales totals for reseller stores, and store locations. Includes the US map from the map gallery, analytical data from a dataset, polygon layer (one for each state), polygon fill for no sales, polygon color rules based on individual sales, polygon drillthrough action to bookmark in a matrix, markers for stores, marker colors based on store sales, marker drillthrough action to CustomersNearStores report, multiple map titles and legends, and use of Lookup function. |
| CustomersNearStores|| Displays information about customers who live within the specified number of miles from a store. The store geolocation is a String parameter that contains a Well Known Text (WKT) value. The spatial data calculation is performed in the query. |
| Shared Dataset || Description |
| EmployeeSalesYearOverYear2008R2|| The data helps answer the question: How do my seasonal sales compare year over year? . |
| EmployeeSalesDetail2008R2|| This data helps answer the question: Am I meeting my sales quotas for the whole month and for each category? |
| EmpSalesMonth2008R2|| This data helps answer the question: How do the category sales for this month compare to sales for the same month in previous years?|
| SalesEmployees2008R2|| This data provides valid values for the @EmployeeID parameter. |
Your system must meet the following requirements to use the sample reports.
- Microsoft SQL Server 2012 Reporting Services (SSRS) (Evaluation, Standard, Developer, or Enterprise)
- Microsoft SQL Server 2012.
- 2012 AdventureWorks sample database .
- Business Intelligence Development Studio Note: Business Intelligence (BI) Development Studio is not supported on Itanium-based computers. However, support for BI Development Studio is available for x64-based computers. If the SQL Server AdventureWorks sample databases have been deployed on an Itanium-based computer, use BI Development Studio on either an x86-based or x64-based computer to modify and run the samples.
SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. To download the AdventureWorks Sample Reports for SQL Server 2012, click here
. For information about downloading databases, click here
Deploying the AdventureWorks Sample Reports
- On the Business Intelligence Development Studio toolbar, click File, point to Open, and then click Project/Solution.
- Browse to the file AdventureWorks 2012.sln and click Open.
- On the standard toolbar, select the Production solution configuration. (The default configuration is Debug.)
- On the Build menu, click Deploy AdventureWorks 2012 Sample Reports. When you deploy the solution, the reports are published to the report server.
Viewing Report Samples in Report Manager
After you publish the report samples, you can view them in Report Manager. Viewing reports requires the following permissions:
- You must have permission to log on to the local SQL Server Database Engine that hosts the AdventureWorks2012 database. By default, report data sources are configured to use Windows integrated security. Your Windows account credentials are used to log on to the database.
- You must have a role assignment that grants you access to the report. If you are a local administrator on the computer, all of these permissions are granted automatically. If you are not a local administrator, you must configure role assignments and login permissions before you view the report.
To view a report in Report Manager
- Open a browser window. Report Manager requires Internet Explorer 6.0 or later with scripting enabled.
- Type the Report Manager URL in the address bar of a Web browser. By default, the URL is http://<webservername>/reports.
- Navigate to the folder that contains the reports.
- Click the name of the report that you want to open.
Help and Information
© 2013 Microsoft Corporation. All rights reserved.