You can install SQL Server Reporting Services (SSRS) on an Elastic Compute Service (ECS) instance and create reports based on the data in your ApsaraDB RDS for SQL Server instance. This topic describes how to install and use SSRS on an ECS instance.
Background information
Microsoft SQL Server contains server components such as SQL Server database engine, SSRS, and SQL Server Analysis Services (SSAS). The SQL Server database engine is a standard relational database component. ApsaraDB RDS for SQL Server is a PaaS that provides this database engine. Components such as SSRS run as Windows services, and are not provided as PaaS services in Alibaba Cloud.
Prerequisites
An RDS instance is created. For more information, see Create an ApsaraDB RDS for SQL Server instance.
An ECS instance that runs a Windows operating system is created. For more information, see Create an instance by using the wizard.
SQL Server is installed on the ECS instance.
NoteThe version of SQL Server on the ECS instance can be different from the version that run by the RDS instance.
Procedure
Download and install SSRS on the ECS instance.
-
Open Report Server Configuration Manager, confirm the report server name, and then click Connection.
NoteReport Server Configuration Manager automatically displays all the report server instances that are in the ECS instance. If multiple report server instances exist in the ECS instance, you must select an instance based on your business requirements.
In the Report Server Configuration Connection dialog box, confirm the Server Name, select SSRS from the Report Server Instance drop-down list, and then click Connect.
-
In the left navigation pane, configure the Service Account and Web Service URL.
NoteFor more information, see Install SQL Server Reporting Services (2017 and later).
-
In the left navigation pane, select Database, and then click Change Database on the right to create a new report server database on the ECS instance.
-
Select Create a new report server database and click Next.
-
Confirm the server name and click Next.
-
Enter a Database Name, select a language, and then click Next.
For example, enter
ReportServertestfor Database Name, select your preferred Language, and ensure Report Server Mode is set to Native. -
Specify the credentials used to connect to the report server, and then click Next.
-
Review the summary and click Next. Wait for the report server database to be created.
After all tasks complete successfully, click Finish to close the wizard.
-
Click Done.
NoteFor more information, see Install SQL Server Reporting Services (2017 and later).
-
-
In the left navigation pane, select Web Portal URL. Click Apply. Then, click the provided URL to log in to the report server web portal.
-
In the upper-right corner, select .
-
Configure the parameters.
Section
Parameter
Description
Attribute
Name
Enter the name of the data source. The name cannot contain the following special characters: / @ $ & * + = < > : ' , ? | \
Notes
Specify a description for the data source to identify different data sources.
Hide this item
Click to hide the data source.
Enable this data source
Click to enable the data source.
Connection
Type
The type of data source. Select Microsoft SQL Server.
Connection Character String
Specify the endpoint and the database name of the ApsaraDB RDS for SQL Server instance in the
Data Source=<Endpoint of the RDS instance>; Initial Catalog=<Database name>format.NoteMake sure the IP address of the ECS instance is added to the IP whitelist of the RDS instance. For more information, see Configure an IP address whitelist.
Credentials
Connect using
Select Use the following credentials.
Credential Type
Select Database username and password.
Username
Enter the database account of the RDS instance.
Password
Enter the password of the database account.
-
Click Create.
What to do next
After the data source is created, you can use software such as Report Builder and Visual Studio to design reports. For more information, see Report Builder in SQL Server.