This topic describes how to add a user-created SQL Server data source.

Prerequisites

  • You can access data sources directly or indirectly from an external network.
  • A self-managed SQL Server database is created.
  • The username and password that you use to access the SQL Server database are obtained.
  • The AccessKey ID and AccessKey secret used for authentication are obtained.

Procedure

  1. Click the Workspace tab. In the left-side navigation pane, click Data Sources.
  2. On the Data Sources page, click Create Data Source in the upper-right corner.
  3. In the Add Data Source dialog box, click the User-created Data Sources tab and then the SQL Server card.
    自建sql
  4. In the Add SQL Server Database dialog box, configure the parameters.
    Add a user-created SQL Server data source
    Parameter Description
    Name The name of the data source. In this example, set the value to user-created data source SQLServer.
    Database Address The IP address of the database that is used as the data source.
    Port Number The port that you use to access the database. Default value: 1433.
    Database The name of the database that you want to access. In this example, set the value to SQLServer.
    Schema The schema of the database. Default value: dbo.
    Username The username that you use to access the database. In this example, set the value to root.
    Password The password that you use to access the database.
    User-created ECS Data Source (VPC) Select this option based on your business requirements. If you select User-created ECS Data Source (VPC), configure the following parameters:
    • AccessKey ID: the AccessKey ID that you use to purchase the instance where the database resides.
    • AccessKey Secret: the AccessKey secret that you use to purchase the instance where the database resides.
    • Instance ID: the ID of the purchased instance.
    • ECS Instance Region: the ID of the region where the ECS instance is deployed. In this example, set this value to China (Qingdao).
    ssh Specify whether to access the data source over an SSH tunnel based on your business requirements. If you select ssh, configure the following parameters:
    • SSH Host: the hostname or IP address of the SSH host.
    • SSH Username: the username that you use to access the SSH host.
    • SSH Password: the password that you use to access the SSH host.
    • SSH Port Number: the port that you use to access the SSH host. Default value: 22.
    Note Only Quick BI Enterprise Standard allows you to access user-created data sources in group workspaces over SSH tunnels.
  5. Click Test Connection to test connectivity with the database.
    Test connectivity with the database
  6. After the database passes the connectivity test, click OK.