Create and use a reporting service in Windows Azure SQL Reporting
In this tutorial you will learn about how to create and manage a reporting service on Windows Azure SQL Reporting.
What is SQL Reporting?
SQL Reporting is a cloud-based reporting service built on Windows Azure and SQL Server Reporting Services technologies. By using SQL Reporting, you can easily provision and deploy reporting solutions to the cloud, and take advantage of a distributed data center that provides enterprise-class availability, scalability, and security with the benefits of built-in data protection and self-healing.
To get started with SQL Reporting, you must have a Windows Azure subscription. You can use an existing subscription, a new subscription, or the free trial subscription. For more information, see Windows Azure Offers.
Table of Contents
- Create a report server
- Create a user and assign roles
- Upload a report
- Download a report
- Run a report
- Create a data source
- Create a folder
- Update permissions on a Report item
- Next Steps
Create a reporting service
Use Quick Create to easily create a new reporting service in SQL Reporting. You'll choose a region and provide the user name and password of the server administrator.
-
On the navigation pane, click SQL Reporting.
Click NEW, and then click Quick Create.
Enter a descriptive name for the service. The service name is used only in the portal. The actual URL used to access the service will be a 10 character GUID.
From the Region list, select a region. You can create only one reporting service in each region for each subscription.
-
Type the user name of the reporting service administrator and in Password and Confirm Password type the administrator password.
Be sure to keep this information in a safe place. You need it to access the report server.
Click Create SQL Reporting Service.
The reporting service is created using the current subscription. The reporting service name is a 10 character GUID composed of letters and numbers.
Create a user and assign roles
-
Click the name of service you just created.
Click Users at the top of the page, and then click Create at the bottom of hte page.
The Create a new user dialog box opens.
-
Enter user name and password, select an item role, such as Browser. Click the check mark.
User names must be unique. If you provide a duplicate name, an error message displays and you cannot continue until you change the user name to one that is unique.
Upload a report
Click Items at the top of the page to manage items.
Click Add , and then click Upload Report.
The Upload Report dialog box opens.
Click the ellipsis (…) button to the right of the Report Definition file box and browse to the location of the report that you want to upload. The report file must be .rdl file type.
Select the report and click Open.
You return to the Upload Report dialog box. The name of the report shows in the Definition file and Name boxes.
-
Optionally, rename the report by typing a different name in Name.
The upload process does not overwrite an existing report with the same name; instead, the upload fails. If you previously uploaded the report to the root of the report server or the same folder, you must either first delete the existing report on the server or use a different name when you upload the report.
The report server can host multiple reports with the same names when they are in different folders.
Optionally, type a description in the Description box.
Click the check mark to upload the file.
Download a report
On the Items page, you can select an existing report and download it.
Click the report in the Report list, click the down arrow to the right of the report name, and then click download.
The Download Report dialog box opens.
Click the ellipsis (…) next to the Report box and browse to the location where you want to download the report.
Type the name of the report, and click Save.
You return to Download Report and the name of the report appears in Report.
You cannot change the report name. If you want change the name, update the properties on the report. For more information, see How to: Update Permissions on Report Server Item (Windows Azure SQL Reporting).
Close the dialog box.
Run a report : from the portal
In the management portal, click the reporting service to which you uploaded or deployed the report that you want to run.
On the Dashboard, click the link [Link] next to the Web service URL.
On the sign in page, enter the credentials of a user with permission to run reports.
The report renders in the Report Viewer in a new browser window.
If the report has parameters, select parameter values in the Report Viewer and click View Report.
Optionally, explore the report by displaying different report pages, searching for values in the report, and exporting the report to a different format.
Create a data source
Use the Items page to create a shared data source.
If you do not want the new data source in the root folder of the report server, navigate to the folder in which you want to create the data source.
On the ribbon, click Add and then click Create Data Source. The Create Data Source dialog box opens. You must have a SQL Database under the same subscription used for the reporting service. The database for which you are creating the shared data source must exist in the SQL Database instance.
Type a name in the Name box. Names of data sources in a folder must be unique. Optionally, type a description inDescription.
If you want the data source to be available to use in reports, select Enable. If you do not want to enable the data source when you first create it, you can do it later when you are ready to use it.
-
Type or paste a connection string. The format of the connection string is:
DataSource=<SQL Database service>;InitialCatalog=<SQL Database instance>;Encrypt=True;
-
Choose how the data source connects to the SQL Database instance. You can use either of the following two authentication types:
- Prompt for credentials to prompt users to provide a user name and password when they run the report. Optionally, update the default prompt text: Type the user name and password to use in order to access the data source:.
- Credentials stored securely in the report server to provide a user name and a password that is stored on the report server, separately from the report.
Close the dialog box.
Create a folder
Navigate to the folder in which you want to create a new folder.
Breadcrumbs provide a visual presentation of the path from the root folder to the current folder.
Click Create in the Folder category on the ribbon.
In Name, type the folder name.
Optionally, in Description, type a description.
The description is included in the folder entry in the folder list.
Click OK.
By default, a folder inherits the role assignments of its parent folder. After you create the folder, you can update its role assignments. For more information, see How to: Update Permissions on Report Server Item (Windows Azure SQL Reporting).
Update permissions on a Report item
-
To update permissions on a report item, Click the row that contains the report items, click the down arrow to the right of the folder, and then click Permissions. The Manage Permissions dialog box opens.
To update permissions of a Folder, you can optionally click Permissions in the Folder category of the portal ribbon.
Roles assignments of an item are automatically inherited from the folder that contains the item.
By default, the root folder has the permissions granted to the report server administrator. When you update permissions on a folder, permissions on its child folders are updated as well.
Because the root folder has no physical folder for you to select, you can set permissions on the root folder of the server only by clicking Permissions in the Folder category on the toolbar.
Optionally, locate users by typing in the box next to the search icon or filter by role by selecting a role in the role list that is located to the right of the box.
-
Click the user for whom you want to update role assignments on the selected folder.
The user list includes the report server administrator. This user is grayed out and you cannot change its item roles. The administrator is automatically assigned the Content Manager and System Administrator roles when it is first created. These roles provide the highest permissions and you cannot lessen the administrator’s permissions by assigning item roles with lower permissions.
Select and clear role assignments.
Close the dialog box.
Next Steps
Now that you've learned the basics of SQL Reporting administration, see Windows Azure SQL Reporting on MSDN.