In the previous post we saw How to provision and configure SQL Azure Reporting Services account.
In this article, we will see to How to create a report for SQL Azure Reporting Services using data from SQL Azure Database
Click on Start –> All Programs –> Microsoft SQL Server 2008 R2 and open SQL Server Business Intelligence Development Studio
Click on File –> New Project and select Report Server Project Wizard
Click “Next” on Report Wizard to proceed
Specify the name of the Data source and select Type as “Microsoft SQL Azure” and then click “Edit” to define connection string
Specify the name of the SQL Azure database server, specify username (Please enter username@servername) and then password and then Select the database .
Click “Advanced” and specify Application Name and set Encrypt to True, click “Ok” to proceed
Click on Test Connection to make sure the connection works and then click “Ok” to proceed
After connection test is suceeded, click “ok” to proceed and then the defined connection string will be displayed, you can manually verify this as well. Click “Next” to proceed
In Query Designer, you can select the tables and fields you want to display in report, You can also click on “Edit as Text”, if you want to use the query which you already created
After defining the query, click “Run Query” to test and make sure that they query works fine and returns data. After the query runs successfully, click “Ok” to proceed
You can review the query in this screen, if you want to make any further changes, click on “Query Builder…” button to go to query designer window, or else, click “Next” to proceed
Select the report type as “Tabular”, based on your requirement, you can change your report type. Once selected, click “Next” to proceed
Select the Available Fields and move to Displayed Fields, Group Fields and Details based on your report requirement and click “Next” to proceed
Select Report Table Layout and specify whether to display Subtotal or enable Drilldown and then click “Next” to proceed
Select your preferred Report Style and click “Next” to proceed
Enter the Report Name and then click “Finish” to complete
Once the report is generated and saved, it will be previewed automatically
Now you have successfully created a SSRS Report using SQL Azure data for SQL Azure Reporting services.
In the next post, we will see how to deploy this report to SQL Azure Reporting Services and preview the reports in SQL Azure Reporting Web