ProductNumber,
Color,
ListPrice,
SC.Name [Category]
FROM Production.Product P
LEFT OUTER JOIN Production.ProductSubCategory SC
ON P.ProductSubCategoryID = SC.ProductSubCategoryID
WHERE ListPrice BETWEEN 0 AND 1000
ORDER BY Category, ListPrice ASC
Then click OK. At the end you will see the data set displayed in the data fields in the Report Data tab .
Add other components to the report:
After you have successfully initialized the dataset, you start creating the report. The first is the simple and familiar attributes such as the product table, title and page number.
Drag and drop the Table from the Toolbox tab into the main interface of the report.
In the Report Data tab, continue to drag and drop the Category, Color, Product, Name, and List Price data fields as follows:
Do the same with the Textbox component, type AdventureWorks Products.
At the blank part of the report, right-click and select Insert> Page Footer.
Drag and drop the textbox into this footer, in Built-In Fields section on the Report Data tab, drag the tab to the Page Number element .
Use the Preview feature to preview the report table with standard input data.
Report format and export:
This is the last step to complete the reports, including features at the Design tab:
Add and delete columns: right-click the table and select Insert Column> Left or Right .
Change the width of the data column : drag and change the external part.
Change the font and format : select the corresponding data fields, customize or change according to user needs.
Standard digit display format: right-click the numeric data field, select Text Box Properties and change the Number section.
Resize the report : hover and drag at the corners to enlarge or shrink the size.
To export the report to different formats such as PDF, Excel . you do the following:
Select the Preview tab
Click the Export button above:
Then select the appropriate format, the path to save the file and click Save .
Above are the basic steps for creating and editing reports in SQL Server Reporting Services , but you can also refer to the example here: SQL Server Books Online, SQL Server Books Online Tutorials, Microsoft Press - Stacia Misner and CodePlex. Good luck!