How to: Create a Detailed Report for Team System using Report Designer
You can track your team's progress more easily by creating reports that contain detailed information from Team System. For example, you can create a report that includes details such as titles of work items. To create this type of report, you can use SQL Server 2005's Report Designer and the relational database of the data warehouse for Team System.
After you create your first report, you might change it by experimenting with different data and layouts. For example, you could group the table by the Assigned To field.
If you have not created reports for Team Foundation before, see Working with Report Designer on the Microsoft Web site. To create reports that primarily show aggregate information, see .. For more information about how to use Report Designer, see
To perform this procedure, you must have Visual Studio 2005 and SQL Server 2005 Business Intelligence Development Studio installed on the same computer.
To install Business Intelligence Development Studio, run the Setup program for , and select the Client Components check box when you specify the components to install. To install the most recent service pack for , see "How to obtain the latest service pack for SQL Server 2005" on the Microsoft Web site.
To perform this procedure, you must be a member of the following roles:
The TfsWarehouseDataReaders security role in the relational database from the data warehouse for Team System on the data-tier server of Team Foundation Server. For more information, see.
The Publisher role in SQL Server Reporting Services on the application-tier server of Team Foundation Server. For more information, see.
To create a report
In Visual Studio 2005, create or open a Report Server project. For more information, see.
On the Project menu, click Add New Item.
The Add New Item dialog box appears.
Click Report Wizard, and then click Add.
The Report Wizard opens to the Select Data Source page.
Click the TFSReportDS shared data source, and then click Next.
The wizard advances to the Design the Query page.
The data source that you specify connects to the relational database from the data warehouse for Team System. For more information, see. If your project does not have this data source, create it. For more information, see .
Click Query Builder.
The Query Build dialog box appears.
To create the query that will retrieve the data for the report
Click Generic Query Designer on the query builder toolbar to enable the query designer.
Click Add Table on the query builder toolbar.
The Add Table dialog box appears.
Click the Current Work Item table, and then click Add.
This fact table contains the current state of each work item. For more information about how fact and dimension tables relate to each other, seeand .
Click the Work Item table, and then click Add.
This table contains the Work Item dimension. For more information, see.
Click the Person table, click Add, and then click Close.
This table contains the Person dimension. The fact table for current work items has foreign keys to this table for the Assigned To, Changed By, and Created By fields. For more information, see.
In the Work Item table, select the check boxes for System_Title and System_State.
In the Person table, select the check box for Person.
In the query pane, delete the clauses that use Changed By and Created By so that you now have the following query.
SELECT Person.Person, [Work Item].System_State FROM [Current Work Item] INNER JOIN [Work Item] ON [Current Work Item].[Work Item] = [Work Item].__ID INNER JOIN Person ON [Current Work Item].[Assigned To] = Person.__ID
Click Run on the query builder toolbar to verify that the query works, and then click OK.
The Query Builder is closed, and the Design the Query page of the Report Wizard reappears.
To design the report layout
The wizard advances to the Report Type page.
Click Tabular, and then click Next.
The wizard advances to the Design the Table page.
Click System_Title, and then click Details.
Click Person, and then click Details.
Click System_State, click Group, and then click Next.
The wizard advances to the Choose the Table Layout page.
Click the layout options that you prefer, and then click Next.
The wizard advances to the Choose the Table Style page.
Click any style, and then click Next.
The wizard advances to the Completing the Report page.
Type a name for the report, click Preview Report, and then click Finish to create the report.
The wizard closes, and the report document window appears with the Preview tab active.
To deploy the report
In Solution Explorer, click the report.
On the Build menu, click Deploy ReportName.
To successfully deploy the report, your project settings must be set to appropriate values. For more information, see.