Help Center/ Relational Database Service/ Best Practices/ RDS for SQL Server/ Deploying SQL Server Reporting Services (SSRS) on RDS for SQL Server
Updated on 2024-09-06 GMT+08:00

Deploying SQL Server Reporting Services (SSRS) on RDS for SQL Server

You can use SSRS to make various simple or complex reports. In addition, RDS provides the subscription function for you to subscribe to reports. This section describes how to deploy SSRS on RDS for SQL Server.

Scenarios

Microsoft SQL Server contains server components such as the SQL Server database engine, SSRS, and SQL Server Analysis Services (SSAS). The SQL Server database engine is a standard relational database component. RDS for SQL Server is a Platform-as-a-Service (PaaS) service that provides this database engine. However, other components, such as SSRS, are not provided as PaaS services on Huawei Cloud. To use SSRS on Huawei Cloud, you need to create a Windows-based ECS before installing and configuring SSRS.

SSRS has been separated from the Microsoft SQL Server component package and become an independent component service since SQL Server 2017. To migrate SSRS to the cloud, download the component from the Microsoft official website, install it on a Windows-based ECS, and use RDS for SQL Server as the backend database.

Prerequisites

  • You have created a Windows-based ECS. (The ECS and RDS DB instance must be in the same VPC, security group, and subnet.)

Procedure

  1. Download SSRS and install it on the ECS.
  2. After the installation is complete, click Configure Report Server.
  3. In Report Server Configuration Manager, configure Server Name and click Connect.
  4. In the navigation pane on the left, click Service Account and Web Service URL and configure parameters based on your service requirements.

    For details, see the official documentation.

  5. Configure the report server.

    1. In the navigation pane on the left, click Database. On the right of the page, click Change Database to create a report server database on the ECS.

    2. In the displayed dialog box, select Create a new report server database and click Next.

      If a local report database is available, you can use Data Replication Service (DRS) to migrate the full backup files of the local report database to the RDS for SQL Server instance.

    3. Configure the connection information of the RDS for SQL Server instance. Set Server Name to the RDS for SQL Server instance address in the format of IP address,port. Use a comma (,) to separate the IP address and port. Set Username to rdsuser. Click Test Connection. After the connection test is successful, click Next.

    4. Enter the database name, select a language for the script, and then click Next.

    5. Configure the credentials for the account rdsuser to connect to the report server and click Next.

    6. Confirm the report server information and click Next.
    7. After the configuration is successful, click Finish.

    For details, see the official documentation.

  6. In the navigation pane on the left, click Web Portal URL and click Apply. After the operation is complete, click the URL to access the web page of the report server.

  7. In the upper right corner, choose New > Data Source.

  8. Configure the parameters as follows:

    Table 1 Parameter description

    Category

    Parameter

    Description

    Properties

    Name

    Name of the data source. The name cannot contain the following characters: / @ $ & * + = < > : ' , ? | \

    Description

    Description of the data source, which is used to identify different data sources.

    Hide

    If this parameter is selected, the data source is hidden.

    Enable

    If this parameter is selected, the data source is enabled.

    Connections

    Type

    Type of the data source. Select Microsoft SQL Server.

    Connection String

    Domain name and database name of the RDS for SQL Server instance in the following format:

    Data Source=<Floating IP address of the RDS for SQL Server instance, port of the RDS for SQL Server instance>;

    Initial Catalog=<Database name>

    Login

    Data Source Login

    Select Use the following credentials.

    Credential Type

    Select Database username and password.

    Username

    Account of the RDS for SQL Server instance

    Password

    Password of the database account

  9. Click Test Connection. After the connection test is successful, click Create.
  10. After the data source is created, design reports using Report Builder or Visual Studio.

    For details, see Report Builder in SQL Server.